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
wyykak
ygopro
Commits
84996eee
Commit
84996eee
authored
Feb 26, 2013
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
77ed757f
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
56 additions
and
17 deletions
+56
-17
script/c19337371.lua
script/c19337371.lua
+3
-2
script/c23232295.lua
script/c23232295.lua
+14
-3
script/c25788011.lua
script/c25788011.lua
+1
-0
script/c26400609.lua
script/c26400609.lua
+5
-1
script/c33665663.lua
script/c33665663.lua
+1
-0
script/c47030842.lua
script/c47030842.lua
+1
-1
script/c53804307.lua
script/c53804307.lua
+5
-1
script/c5556499.lua
script/c5556499.lua
+3
-1
script/c72710085.lua
script/c72710085.lua
+5
-1
script/c83272895.lua
script/c83272895.lua
+1
-1
script/c86848580.lua
script/c86848580.lua
+1
-1
script/c88177324.lua
script/c88177324.lua
+5
-2
script/c89399912.lua
script/c89399912.lua
+5
-1
script/c90411554.lua
script/c90411554.lua
+5
-1
script/c923596.lua
script/c923596.lua
+1
-1
No files found.
script/c19337371.lua
View file @
84996eee
...
@@ -44,12 +44,13 @@ function c19337371.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,12 +44,13 @@ function c19337371.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetDescription
(
aux
.
Stringid
(
19337371
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
19337371
,
0
))
e1
:
SetCategory
(
CATEGORY_SEARCH
)
e1
:
SetCategory
(
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c19337371
.
thtg
)
e1
:
SetTarget
(
c19337371
.
thtg
)
e1
:
SetOperation
(
c19337371
.
thop
)
e1
:
SetOperation
(
c19337371
.
thop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_
EVENT
+
0x1fe0000
+
RESET_
PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
end
function
c19337371
.
thfilter
(
c
)
function
c19337371
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x64
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x64
)
and
c
:
IsAbleToHand
()
...
...
script/c23232295.lua
View file @
84996eee
...
@@ -9,7 +9,7 @@ function c23232295.initial_effect(c)
...
@@ -9,7 +9,7 @@ function c23232295.initial_effect(c)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
c23232295
.
reptg
)
e1
:
SetTarget
(
c23232295
.
reptg
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
c23232295
.
repval
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--attack up
--attack up
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -25,12 +25,23 @@ function c23232295.repfilter(c,tp)
...
@@ -25,12 +25,23 @@ function c23232295.repfilter(c,tp)
return
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x84
)
return
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x84
)
end
end
function
c23232295
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23232295
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
GetCount
()
==
1
and
c23232295
.
repfilter
(
eg
:
GetFirst
()
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c23232295
.
repfilter
,
1
,
nil
,
tp
)
end
if
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
23232295
,
0
))
then
if
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
23232295
,
1
))
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
local
g
=
eg
:
Filter
(
c23232295
.
repfilter
,
nil
,
tp
)
if
g
:
GetCount
()
==
1
then
e
:
SetLabelObject
(
g
:
GetFirst
())
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
cg
=
g
:
Select
(
g
,
1
,
1
,
nil
)
e
:
SetLabelObject
(
cg
:
GetFirst
())
end
return
true
return
true
else
return
false
end
else
return
false
end
end
end
function
c23232295
.
repval
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
end
function
c23232295
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23232295
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
end
end
...
...
script/c25788011.lua
View file @
84996eee
...
@@ -5,6 +5,7 @@ function c25788011.initial_effect(c)
...
@@ -5,6 +5,7 @@ function c25788011.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
25788011
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
25788011
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetTarget
(
c25788011
.
target
)
e1
:
SetTarget
(
c25788011
.
target
)
e1
:
SetOperation
(
c25788011
.
operation
)
e1
:
SetOperation
(
c25788011
.
operation
)
...
...
script/c26400609.lua
View file @
84996eee
...
@@ -17,9 +17,9 @@ function c26400609.initial_effect(c)
...
@@ -17,9 +17,9 @@ function c26400609.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCondition
(
c26400609
.
retcon
)
e2
:
SetCondition
(
c26400609
.
retcon
)
e2
:
SetCost
(
c26400609
.
retcost
)
e2
:
SetTarget
(
c26400609
.
rettg
)
e2
:
SetTarget
(
c26400609
.
rettg
)
e2
:
SetOperation
(
c26400609
.
retop
)
e2
:
SetOperation
(
c26400609
.
retop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -71,6 +71,10 @@ function c26400609.retcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,6 +71,10 @@ function c26400609.retcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
end
end
function
c26400609
.
retcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
26400609
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
26400609
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c26400609
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26400609
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
script/c33665663.lua
View file @
84996eee
...
@@ -25,6 +25,7 @@ function c33665663.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,6 +25,7 @@ function c33665663.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_PIERCE
)
e1
:
SetCode
(
EFFECT_PIERCE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTarget
(
c33665663
.
filter
)
e1
:
SetTarget
(
c33665663
.
filter
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
...
...
script/c47030842.lua
View file @
84996eee
...
@@ -33,7 +33,7 @@ function c47030842.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,7 @@ function c47030842.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c47030842
.
filter
(
c
)
function
c47030842
.
filter
(
c
)
return
c
:
IsSetCard
(
0x72
)
and
c
:
GetCode
()
~=
47030842
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x72
)
and
c
:
GetCode
()
~=
47030842
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
end
function
c47030842
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c47030842
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c47030842
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c47030842
.
filter
(
chkc
)
end
...
...
script/c53804307.lua
View file @
84996eee
...
@@ -17,9 +17,9 @@ function c53804307.initial_effect(c)
...
@@ -17,9 +17,9 @@ function c53804307.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCondition
(
c53804307
.
retcon
)
e2
:
SetCondition
(
c53804307
.
retcon
)
e2
:
SetCost
(
c53804307
.
retcost
)
e2
:
SetTarget
(
c53804307
.
rettg
)
e2
:
SetTarget
(
c53804307
.
rettg
)
e2
:
SetOperation
(
c53804307
.
retop
)
e2
:
SetOperation
(
c53804307
.
retop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -72,6 +72,10 @@ function c53804307.retcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,6 +72,10 @@ function c53804307.retcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
end
end
function
c53804307
.
retcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
53804307
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
53804307
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c53804307
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c53804307
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
script/c5556499.lua
View file @
84996eee
...
@@ -33,7 +33,9 @@ function c5556499.spfilter(c)
...
@@ -33,7 +33,9 @@ function c5556499.spfilter(c)
end
end
function
c5556499
.
spcon
(
e
,
c
)
function
c5556499
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c5556499
.
spfilter
,
c
:
GetControler
(),
LOCATION_HAND
,
0
,
nil
)
local
tp
=
c
:
GetControler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c5556499
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
not
c
:
IsAbleToGraveAsCost
()
then
if
not
c
:
IsAbleToGraveAsCost
()
then
g
:
RemoveCard
(
c
)
g
:
RemoveCard
(
c
)
end
end
...
...
script/c72710085.lua
View file @
84996eee
...
@@ -18,8 +18,12 @@ function c72710085.initial_effect(c)
...
@@ -18,8 +18,12 @@ function c72710085.initial_effect(c)
e2
:
SetOperation
(
c72710085
.
tgop
)
e2
:
SetOperation
(
c72710085
.
tgop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c72710085
.
cfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c72710085
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72710085
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetCount
()
==
1
and
eg
:
GetFirst
():
IsPreviousLocation
(
LOCATION_GRAVE
)
and
eg
:
GetFirst
():
IsControler
(
tp
)
local
g
=
eg
:
Filter
(
c72710085
.
cfilter
,
nil
)
return
g
:
GetCount
()
==
1
and
g
:
GetFirst
():
IsPreviousLocation
(
LOCATION_GRAVE
)
and
g
:
GetFirst
():
IsControler
(
tp
)
end
end
function
c72710085
.
tgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72710085
.
tgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
72710085
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
72710085
)
==
0
end
...
...
script/c83272895.lua
View file @
84996eee
...
@@ -24,7 +24,7 @@ function c83272895.efop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,7 @@ function c83272895.efop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e2
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e2
:
SetValue
(
TYPE_MONSTER
+
TYPE_EFFECT
+
TYPE_XYZ
)
e2
:
SetValue
(
TYPE_MONSTER
+
TYPE_EFFECT
+
TYPE_XYZ
)
e2
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1f
f
0000
)
rc
:
RegisterEffect
(
e2
)
rc
:
RegisterEffect
(
e2
)
end
end
end
end
script/c86848580.lua
View file @
84996eee
...
@@ -20,7 +20,7 @@ function c86848580.discost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,7 +20,7 @@ function c86848580.discost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
end
function
c86848580
.
filter
(
c
)
function
c86848580
.
filter
(
c
)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_NORMAL
)
end
end
function
c86848580
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c86848580
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86848580
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86848580
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
script/c88177324.lua
View file @
84996eee
...
@@ -32,11 +32,14 @@ function c88177324.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,11 +32,14 @@ function c88177324.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
end
function
c88177324
.
filter1
(
c
)
function
c88177324
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
not
c
:
IsDisabled
()
end
end
function
c88177324
.
filter2
(
c
)
function
c88177324
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
GetAttack
()
~=
c
:
GetBaseAttack
()
or
c
:
GetDefence
()
~=
c
:
GetBaseDefence
())
return
c
:
IsFaceup
()
and
(
c
:
GetAttack
()
~=
c
:
GetBaseAttack
()
or
c
:
GetDefence
()
~=
c
:
GetBaseDefence
())
end
end
function
c88177324
.
filter3
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
end
function
c88177324
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88177324
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88177324
.
filter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
Duel
.
IsExistingMatchingCard
(
c88177324
.
filter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
...
@@ -45,7 +48,7 @@ function c88177324.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,7 +48,7 @@ function c88177324.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c88177324
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88177324
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
c88177324
.
filter
1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c88177324
.
filter
3
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c89399912.lua
View file @
84996eee
...
@@ -17,9 +17,9 @@ function c89399912.initial_effect(c)
...
@@ -17,9 +17,9 @@ function c89399912.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCondition
(
c89399912
.
retcon
)
e2
:
SetCondition
(
c89399912
.
retcon
)
e2
:
SetCost
(
c89399912
.
retcost
)
e2
:
SetTarget
(
c89399912
.
rettg
)
e2
:
SetTarget
(
c89399912
.
rettg
)
e2
:
SetOperation
(
c89399912
.
retop
)
e2
:
SetOperation
(
c89399912
.
retop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -71,6 +71,10 @@ function c89399912.retcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,6 +71,10 @@ function c89399912.retcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
end
end
function
c89399912
.
retcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
89399912
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
89399912
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c89399912
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89399912
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
script/c90411554.lua
View file @
84996eee
...
@@ -17,9 +17,9 @@ function c90411554.initial_effect(c)
...
@@ -17,9 +17,9 @@ function c90411554.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCondition
(
c90411554
.
retcon
)
e2
:
SetCondition
(
c90411554
.
retcon
)
e2
:
SetCost
(
c90411554
.
retcost
)
e2
:
SetTarget
(
c90411554
.
rettg
)
e2
:
SetTarget
(
c90411554
.
rettg
)
e2
:
SetOperation
(
c90411554
.
retop
)
e2
:
SetOperation
(
c90411554
.
retop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -72,6 +72,10 @@ function c90411554.retcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,6 +72,10 @@ function c90411554.retcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
end
end
function
c90411554
.
retcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
90411554
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
90411554
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c90411554
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c90411554
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
script/c923596.lua
View file @
84996eee
...
@@ -33,7 +33,7 @@ function c923596.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,7 @@ function c923596.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c923596
.
filter
(
c
)
function
c923596
.
filter
(
c
)
return
c
:
IsSetCard
(
0x72
)
and
c
:
GetCode
()
~=
923596
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x72
)
and
c
:
GetCode
()
~=
923596
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
end
function
c923596
.
shtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c923596
.
shtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c923596
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c923596
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
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