Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
d23b4f4f
Commit
d23b4f4f
authored
Dec 07, 2012
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #363 from VanillaSalt/patch43
fix
parents
289353f6
232fab46
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
36 additions
and
20 deletions
+36
-20
ocgcore/processor.cpp
ocgcore/processor.cpp
+16
-2
script/c15894048.lua
script/c15894048.lua
+1
-1
script/c1781310.lua
script/c1781310.lua
+4
-4
script/c20000008.lua
script/c20000008.lua
+1
-1
script/c20000009.lua
script/c20000009.lua
+1
-1
script/c21620076.lua
script/c21620076.lua
+1
-0
script/c24019261.lua
script/c24019261.lua
+3
-3
script/c2926176.lua
script/c2926176.lua
+1
-1
script/c34016756.lua
script/c34016756.lua
+1
-1
script/c55256016.lua
script/c55256016.lua
+1
-1
script/c56981417.lua
script/c56981417.lua
+1
-1
script/c6713443.lua
script/c6713443.lua
+1
-0
script/c82556058.lua
script/c82556058.lua
+1
-1
script/c967928.lua
script/c967928.lua
+1
-1
script/utility.lua
script/utility.lua
+2
-2
No files found.
ocgcore/processor.cpp
View file @
d23b4f4f
...
...
@@ -1287,6 +1287,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
auto
pr
=
effects
.
trigger_f_effect
.
equal_range
(
phase_event
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
{
peffect
=
pr
.
first
->
second
;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
if
(
!
peffect
->
is_activateable
(
check_player
,
nil_event
))
continue
;
peffect
->
id
=
infos
.
field_id
++
;
...
...
@@ -1298,6 +1300,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
pr
=
effects
.
trigger_o_effect
.
equal_range
(
phase_event
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
{
peffect
=
pr
.
first
->
second
;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
if
(
!
peffect
->
is_activateable
(
check_player
,
nil_event
))
continue
;
peffect
->
id
=
infos
.
field_id
++
;
...
...
@@ -1328,6 +1332,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
pr
=
effects
.
quick_o_effect
.
equal_range
(
EVENT_FREE_CHAIN
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
{
peffect
=
pr
.
first
->
second
;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
if
(
!
peffect
->
is_chainable
(
check_player
)
||
!
peffect
->
is_activateable
(
check_player
,
nil_event
))
continue
;
peffect
->
id
=
infos
.
field_id
++
;
...
...
@@ -1417,6 +1423,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
auto
pr
=
effects
.
trigger_f_effect
.
equal_range
(
phase_event
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
{
peffect
=
pr
.
first
->
second
;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
if
(
!
peffect
->
is_activateable
(
check_player
,
nil_event
))
continue
;
peffect
->
id
=
infos
.
field_id
++
;
...
...
@@ -1428,6 +1436,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
pr
=
effects
.
trigger_o_effect
.
equal_range
(
phase_event
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
{
peffect
=
pr
.
first
->
second
;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
if
(
!
peffect
->
is_activateable
(
check_player
,
nil_event
))
continue
;
peffect
->
id
=
infos
.
field_id
++
;
...
...
@@ -1446,6 +1456,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
pr
=
effects
.
activate_effect
.
equal_range
(
EVENT_FREE_CHAIN
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
{
peffect
=
pr
.
first
->
second
;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
if
(
!
peffect
->
is_chainable
(
check_player
)
||
!
peffect
->
is_activateable
(
check_player
,
nil_event
))
continue
;
peffect
->
id
=
infos
.
field_id
++
;
...
...
@@ -1458,6 +1470,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
pr
=
effects
.
quick_o_effect
.
equal_range
(
EVENT_FREE_CHAIN
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
{
peffect
=
pr
.
first
->
second
;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
if
(
!
peffect
->
is_chainable
(
check_player
)
||
!
peffect
->
is_activateable
(
check_player
,
nil_event
))
continue
;
peffect
->
id
=
infos
.
field_id
++
;
...
...
@@ -2128,10 +2142,10 @@ int32 field::process_instant_event() {
pr
=
effects
.
quick_f_effect
.
equal_range
(
elit
->
event_code
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
{
peffect
=
pr
.
first
->
second
;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
if
(
peffect
->
is_activateable
(
peffect
->
handler
->
current
.
controler
,
*
elit
))
{
peffect
->
handler
->
create_relation
(
peffect
);
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
newchain
.
flag
=
0
;
newchain
.
chain_id
=
infos
.
field_id
++
;
newchain
.
evt
=
*
elit
;
...
...
script/c15894048.lua
View file @
d23b4f4f
...
...
@@ -49,5 +49,5 @@ end
function
c15894048
.
facon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
(
c15894048
[
tp
]
~=
2
or
e
:
GetHandler
():
GetFlagEffect
(
15894048
)
~=
0
)
and
c15894048
[
tp
]
==
e
:
GetHandler
():
GetFlagEffect
(
15894048
)
end
script/c1781310.lua
View file @
d23b4f4f
...
...
@@ -21,10 +21,10 @@ function c1781310.dfilter2(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
end
function
c1781310
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c1781310
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_WIND
)
and
Duel
.
IsExistingMatchingCard
(
c1781310
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_WATER
)
and
Duel
.
IsExistingMatchingCard
(
c1781310
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_FIRE
)
and
Duel
.
IsExistingMatchingCard
(
c1781310
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ATTRIBUTE_EARTH
)
return
Duel
.
IsExistingMatchingCard
(
c1781310
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
ATTRIBUTE_WIND
)
and
Duel
.
IsExistingMatchingCard
(
c1781310
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
ATTRIBUTE_WATER
)
and
Duel
.
IsExistingMatchingCard
(
c1781310
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
ATTRIBUTE_FIRE
)
and
Duel
.
IsExistingMatchingCard
(
c1781310
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
ATTRIBUTE_EARTH
)
end
function
c1781310
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1781310
.
dfilter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
...
...
script/c20000008.lua
View file @
d23b4f4f
...
...
@@ -55,7 +55,7 @@ function c20000008.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c20000008
.
filter
(
c
)
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
(
true
)
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_
SPELL
+
TYPE_
TRAP
)
and
c
:
IsSSetable
(
true
)
end
function
c20000008
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>-
1
...
...
script/c20000009.lua
View file @
d23b4f4f
...
...
@@ -54,7 +54,7 @@ end
function
c20000009
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
TOGRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
DESTROY
,
g
,
1
,
0
,
0
)
end
function
c20000009
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
...
...
script/c21620076.lua
View file @
d23b4f4f
...
...
@@ -14,6 +14,7 @@ function c21620076.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_LVCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetTarget
(
c21620076
.
lvtg
)
e2
:
SetOperation
(
c21620076
.
lvop
)
...
...
script/c24019261.lua
View file @
d23b4f4f
...
...
@@ -20,11 +20,11 @@ function c24019261.filter(c,e,tp,tid)
end
function
c24019261
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
tid
=
Duel
.
GetTurnCount
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c24019261
.
filter
(
chkc
,
e
,
tp
,
tid
)
end
if
chkc
then
return
chkc
:
Is
Controler
(
tp
)
and
chkc
:
Is
Location
(
LOCATION_GRAVE
)
and
c24019261
.
filter
(
chkc
,
e
,
tp
,
tid
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c24019261
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
,
tid
)
end
and
Duel
.
IsExistingTarget
(
c24019261
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
tid
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c24019261
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
,
tid
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c24019261
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tid
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c24019261
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c2926176.lua
View file @
d23b4f4f
...
...
@@ -11,7 +11,7 @@ function c2926176.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c2926176
.
cfilter
(
c
)
return
c
:
IsOnField
()
and
(
c
:
IsType
(
TYPE_SPELL
)
or
c
:
IsType
(
TYPE_TRAP
)
)
return
c
:
IsOnField
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c2926176
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
not
Duel
.
IsChainNegatable
(
ev
)
then
return
false
end
...
...
script/c34016756.lua
View file @
d23b4f4f
...
...
@@ -25,7 +25,7 @@ function c34016756.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
==
hc
then
tc
=
g
:
GetNext
()
end
if
hc
:
IsFaceup
()
and
hc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
atk
=
hc
:
Get
Base
Attack
()
local
atk
=
hc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
...
...
script/c55256016.lua
View file @
d23b4f4f
...
...
@@ -12,7 +12,7 @@ function c55256016.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c55256016
.
cfilter
(
c
)
return
c
:
IsOnField
()
and
(
c
:
IsType
(
TYPE_SPELL
)
or
c
:
IsType
(
TYPE_TRAP
)
)
return
c
:
IsOnField
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c55256016
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
tp
==
ep
or
not
Duel
.
IsChainNegatable
(
ev
)
then
return
false
end
...
...
script/c56981417.lua
View file @
d23b4f4f
...
...
@@ -17,7 +17,7 @@ function c56981417.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c56981417
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c56981417
.
cffilter
(
c
)
return
c
:
IsSetCard
(
0x106e
)
and
c
:
IsType
(
TYPE_SPELL
)
and
not
c
:
IsPublic
()
return
c
:
IsSetCard
(
0x106e
)
and
not
c
:
IsPublic
()
end
function
c56981417
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
56981417
)
==
0
...
...
script/c6713443.lua
View file @
d23b4f4f
...
...
@@ -47,6 +47,7 @@ function c6713443.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
setg
=
sg
:
Select
(
tp
,
1
,
ft2
,
nil
)
Duel
.
SSet
(
tp
,
setg
)
Duel
.
ConfirmCards
(
1
-
tp
,
setg
)
end
end
end
script/c82556058.lua
View file @
d23b4f4f
...
...
@@ -44,7 +44,7 @@ function c82556058.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
1000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
82556058
,
2
))
...
...
script/c967928.lua
View file @
d23b4f4f
...
...
@@ -42,5 +42,5 @@ function c967928.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c967928
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_
SPELL
+
TYPE_
TRAP
)
end
script/utility.lua
View file @
d23b4f4f
...
...
@@ -123,7 +123,7 @@ function Auxiliary.AddSynchroProcedure(c,f1,f2,ct)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
Auxiliary
.
SynCondition
(
f1
,
f2
,
ct
,
99
))
e1
:
SetOperation
(
Auxiliary
.
SynOperation
(
f1
,
f2
,
ct
,
99
))
...
...
@@ -160,7 +160,7 @@ function Auxiliary.AddSynchroProcedure2(c,f1,f2)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
Auxiliary
.
SynCondition
(
f1
,
f2
,
1
,
1
))
e1
:
SetOperation
(
Auxiliary
.
SynOperation
(
f1
,
f2
,
1
,
1
))
...
...
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