Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YGOPRO-520DIY
ygopro
Commits
3fcc1e77
Commit
3fcc1e77
authored
Sep 15, 2015
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge
https://github.com/Fluorohydride/ygopro
into server
parents
b413df16
69584f63
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
3 deletions
+6
-3
ocgcore/card.cpp
ocgcore/card.cpp
+1
-0
ocgcore/field.cpp
ocgcore/field.cpp
+1
-0
ocgcore/operations.cpp
ocgcore/operations.cpp
+1
-1
ocgcore/processor.cpp
ocgcore/processor.cpp
+1
-0
script/c17078030.lua
script/c17078030.lua
+1
-1
script/c95676943.lua
script/c95676943.lua
+1
-1
No files found.
ocgcore/card.cpp
View file @
3fcc1e77
...
...
@@ -1190,6 +1190,7 @@ int32 card::copy_effect(uint32 code, uint32 reset, uint32 count) {
pduel
->
uncopy
.
clear
();
return
pduel
->
game_field
->
infos
.
copy_id
-
1
;
}
// add EFFECT_SET_CONTROL
void
card
::
reset
(
uint32
id
,
uint32
reset_type
)
{
effect
*
peffect
;
if
(
reset_type
!=
RESET_EVENT
&&
reset_type
!=
RESET_PHASE
&&
reset_type
!=
RESET_CODE
&&
reset_type
!=
RESET_COPY
&&
reset_type
!=
RESET_CARD
)
...
...
ocgcore/field.cpp
View file @
3fcc1e77
...
...
@@ -376,6 +376,7 @@ void field::move_card(uint8 playerid, card* pcard, uint8 location, uint8 sequenc
}
add_card
(
playerid
,
pcard
,
location
,
sequence
);
}
// add EFFECT_SET_CONTROL
void
field
::
set_control
(
card
*
pcard
,
uint8
playerid
,
uint16
reset_phase
,
uint8
reset_count
)
{
if
((
core
.
remove_brainwashing
&&
pcard
->
is_affected_by_effect
(
EFFECT_REMOVE_BRAINWASHING
))
||
pcard
->
refresh_control_status
()
==
playerid
)
return
;
...
...
ocgcore/operations.cpp
View file @
3fcc1e77
...
...
@@ -3727,7 +3727,7 @@ int32 field::move_to_field(uint16 step, card * target, uint32 enable, uint32 ret
target
->
unequip
();
if
(
enable
||
((
ret
==
1
)
&&
target
->
is_position
(
POS_FACEUP
)))
target
->
enable_field_effect
(
TRUE
);
adjust_
instan
t
();
adjust_
disable_check_lis
t
();
return
FALSE
;
}
case
3
:
{
...
...
ocgcore/processor.cpp
View file @
3fcc1e77
...
...
@@ -5103,6 +5103,7 @@ int32 field::adjust_step(uint16 step) {
for
(
uint8
p
=
0
;
p
<
2
;
++
p
)
{
for
(
uint8
i
=
0
;
i
<
5
;
++
i
)
{
pcard
=
player
[
p
].
list_mzone
[
i
];
// remove EFFECT_SET_CONTROL
if
(
pcard
&&
pcard
->
is_affected_by_effect
(
EFFECT_REMOVE_BRAINWASHING
))
pcard
->
reset
(
EFFECT_SET_CONTROL
,
RESET_CODE
);
}
...
...
script/c17078030.lua
View file @
3fcc1e77
...
...
@@ -20,7 +20,7 @@ function c17078030.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
local
lp
=
Duel
.
GetLP
(
tp
)
local
t
=
{}
local
f
=
math.floor
((
lp
-
1
)
/
1000
)
local
f
=
math.floor
((
lp
)
/
1000
)
local
l
=
1
while
l
<=
f
and
l
<=
20
do
t
[
l
]
=
l
*
1000
...
...
script/c95676943.lua
View file @
3fcc1e77
...
...
@@ -35,6 +35,6 @@ function c95676943.tgop(e,tp,eg,ep,ev,re,r,rp)
c
:
SetTurnCounter
(
ct
)
if
ct
==
3
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
Duel
.
SendtoGrave
(
g
,
REASON_
EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_
RULE
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment