Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
5
Merge Requests
5
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
MyCard
ygopro-scripts-888
Commits
2cd179f5
Commit
2cd179f5
authored
May 03, 2024
by
mercury233
Committed by
GitHub
May 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Card.GetPreviousOverlayCountOnField (#2500)
* add Card.GetPreviousOverlayCountOnField
parent
a10b123c
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
22 additions
and
79 deletions
+22
-79
c12744567.lua
c12744567.lua
+1
-1
c20785975.lua
c20785975.lua
+1
-1
c23998625.lua
c23998625.lua
+2
-2
c3828844.lua
c3828844.lua
+1
-1
c42589641.lua
c42589641.lua
+1
-1
c64182380.lua
c64182380.lua
+3
-11
c67557908.lua
c67557908.lua
+3
-13
c71921856.lua
c71921856.lua
+1
-1
c73289035.lua
c73289035.lua
+1
-1
c77799846.lua
c77799846.lua
+1
-1
c89477759.lua
c89477759.lua
+1
-1
c9486959.lua
c9486959.lua
+1
-13
c94942656.lua
c94942656.lua
+3
-13
c97403510.lua
c97403510.lua
+1
-1
c98905.lua
c98905.lua
+1
-18
No files found.
c12744567.lua
View file @
2cd179f5
...
@@ -48,7 +48,7 @@ function c12744567.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c12744567.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c12744567
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12744567
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
Get
OverlayCount
()
>
0
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
Get
PreviousOverlayCountOnField
()
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
48739166
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
48739166
)
end
end
function
c12744567
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12744567
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c20785975.lua
View file @
2cd179f5
...
@@ -55,7 +55,7 @@ function c20785975.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function c20785975.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c20785975
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20785975
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
Get
OverlayCount
()
>
0
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
Get
PreviousOverlayCountOnField
()
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
94380860
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
94380860
)
end
end
function
c20785975
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20785975
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c23998625.lua
View file @
2cd179f5
...
@@ -61,8 +61,8 @@ function c23998625.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -61,8 +61,8 @@ function c23998625.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c23998625
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23998625
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetOverlayCount
()
==
0
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
GetPreviousOverlayCountOnField
()
==
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
end
function
c23998625
.
spfilter
(
c
,
e
,
tp
)
function
c23998625
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
97403510
)
and
e
:
GetHandler
():
IsCanBeXyzMaterial
(
c
)
return
c
:
IsCode
(
97403510
)
and
e
:
GetHandler
():
IsCanBeXyzMaterial
(
c
)
...
...
c3828844.lua
View file @
2cd179f5
...
@@ -51,7 +51,7 @@ function c3828844.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c3828844.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c3828844
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3828844
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
Get
OverlayCount
()
>
0
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
Get
PreviousOverlayCountOnField
()
>
0
end
end
function
c3828844
.
spfilter
(
c
,
e
,
tp
)
function
c3828844
.
spfilter
(
c
,
e
,
tp
)
if
not
(
c
:
IsRankAbove
(
5
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsType
(
TYPE_XYZ
)
if
not
(
c
:
IsRankAbove
(
5
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsType
(
TYPE_XYZ
)
...
...
c42589641.lua
View file @
2cd179f5
...
@@ -121,7 +121,7 @@ function c42589641.hdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -121,7 +121,7 @@ function c42589641.hdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
end
end
function
c42589641
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42589641
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
Get
OverlayCount
()
>
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_MZONE
)
return
e
:
GetHandler
():
Get
PreviousOverlayCountOnField
()
>
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_MZONE
)
end
end
function
c42589641
.
spfilter
(
c
,
e
,
tp
)
function
c42589641
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c64182380.lua
View file @
2cd179f5
...
@@ -39,13 +39,6 @@ function s.initial_effect(c)
...
@@ -39,13 +39,6 @@ function s.initial_effect(c)
e3
:
SetTarget
(
s
.
sptg
)
e3
:
SetTarget
(
s
.
sptg
)
e3
:
SetOperation
(
s
.
spop
)
e3
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetLabelObject
(
e3
)
e4
:
SetOperation
(
s
.
chk
)
c
:
RegisterEffect
(
e4
)
end
end
function
s
.
dmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
dmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_XYZ
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_XYZ
)
...
@@ -87,8 +80,10 @@ function s.filter(c,e,tp)
...
@@ -87,8 +80,10 @@ function s.filter(c,e,tp)
return
c
:
IsSetCard
(
0x81
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x81
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetLabel
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
ct
=
e
:
GetHandler
():
GetPreviousOverlayCountOnField
()
if
chk
==
0
then
return
ct
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
e
:
SetLabel
(
ct
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -97,6 +92,3 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -97,6 +92,3 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetLabel
(),
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetLabel
(),
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
s
.
chk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
SetLabel
(
e
:
GetHandler
():
GetOverlayCount
())
end
c67557908.lua
View file @
2cd179f5
...
@@ -36,13 +36,6 @@ function c67557908.initial_effect(c)
...
@@ -36,13 +36,6 @@ function c67557908.initial_effect(c)
e3
:
SetTarget
(
c67557908
.
sptg
)
e3
:
SetTarget
(
c67557908
.
sptg
)
e3
:
SetOperation
(
c67557908
.
spop
)
e3
:
SetOperation
(
c67557908
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e4
:
SetOperation
(
c67557908
.
regop
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
end
end
aux
.
xyz_number
[
67557908
]
=
4
aux
.
xyz_number
[
67557908
]
=
4
function
c67557908
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67557908
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -69,14 +62,11 @@ function c67557908.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,14 +62,11 @@ function c67557908.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
end
end
function
c67557908
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetOverlayCount
()
e
:
GetLabelObject
():
SetLabel
(
ct
)
end
function
c67557908
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67557908
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_XYZ
)
and
e
:
GetLabel
()
>
0
local
ct
=
c
:
GetPreviousOverlayCountOnField
()
e
:
SetLabel
(
ct
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_XYZ
)
and
ct
>
0
end
end
function
c67557908
.
spfilter
(
c
,
e
,
tp
)
function
c67557908
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
94942656
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
94942656
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c71921856.lua
View file @
2cd179f5
...
@@ -54,7 +54,7 @@ function c71921856.atkval(e,c)
...
@@ -54,7 +54,7 @@ function c71921856.atkval(e,c)
end
end
function
c71921856
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71921856
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
Get
OverlayCount
()
local
ct
=
c
:
Get
PreviousOverlayCountOnField
()
e
:
SetLabel
(
ct
)
e
:
SetLabel
(
ct
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousControler
(
tp
)
and
ct
>
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousControler
(
tp
)
and
ct
>
0
...
...
c73289035.lua
View file @
2cd179f5
...
@@ -44,7 +44,7 @@ function c73289035.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +44,7 @@ function c73289035.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c73289035
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73289035
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetHandler
():
Get
OverlayCount
()
local
ct
=
e
:
GetHandler
():
Get
PreviousOverlayCountOnField
()
e
:
SetLabel
(
ct
)
e
:
SetLabel
(
ct
)
return
rp
==
1
-
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
ct
>
0
return
rp
==
1
-
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
ct
>
0
and
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
and
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
...
...
c77799846.lua
View file @
2cd179f5
...
@@ -43,7 +43,7 @@ function c77799846.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function c77799846.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c77799846
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c77799846
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
Get
OverlayCount
()
>
0
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
Get
PreviousOverlayCountOnField
()
>
0
end
end
function
c77799846
.
rfilter
(
c
)
function
c77799846
.
rfilter
(
c
)
return
c
:
IsSetCard
(
0x85
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x85
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
c89477759.lua
View file @
2cd179f5
...
@@ -79,7 +79,7 @@ function c89477759.desop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,7 +79,7 @@ function c89477759.desop2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c89477759
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c89477759
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
Get
OverlayCount
()
>
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
Get
PreviousOverlayCountOnField
()
>
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousControler
(
tp
)
and
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousControler
(
tp
)
end
end
function
c89477759
.
spfilter
(
c
,
e
,
tp
)
function
c89477759
.
spfilter
(
c
,
e
,
tp
)
...
...
c9486959.lua
View file @
2cd179f5
...
@@ -25,13 +25,6 @@ function c9486959.initial_effect(c)
...
@@ -25,13 +25,6 @@ function c9486959.initial_effect(c)
e2
:
SetTarget
(
c9486959
.
tdtg
)
e2
:
SetTarget
(
c9486959
.
tdtg
)
e2
:
SetOperation
(
c9486959
.
tdop
)
e2
:
SetOperation
(
c9486959
.
tdop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetOperation
(
c9486959
.
regop
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
end
end
function
c9486959
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9486959
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
@@ -65,11 +58,6 @@ end
...
@@ -65,11 +58,6 @@ end
function
c9486959
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9486959
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ReturnToField
(
e
:
GetLabelObject
())
Duel
.
ReturnToField
(
e
:
GetLabelObject
())
end
end
function
c9486959
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetOverlayCount
()
e
:
GetLabelObject
():
SetLabel
(
ct
)
end
function
c9486959
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9486959
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
rp
==
1
-
tp
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
rp
==
1
-
tp
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
...
@@ -79,7 +67,7 @@ function c9486959.tdfilter(c)
...
@@ -79,7 +67,7 @@ function c9486959.tdfilter(c)
end
end
function
c9486959
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c9486959
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c9486959
.
tdfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c9486959
.
tdfilter
(
chkc
)
end
local
ct
=
e
:
Get
Label
()
local
ct
=
e
:
Get
Handler
():
GetPreviousOverlayCountOnField
()
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingTarget
(
c9486959
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
)
end
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingTarget
(
c9486959
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
Duel
.
SelectTarget
(
tp
,
c9486959
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
ct
,
nil
)
local
sg
=
Duel
.
SelectTarget
(
tp
,
c9486959
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
ct
,
nil
)
...
...
c94942656.lua
View file @
2cd179f5
...
@@ -34,13 +34,6 @@ function c94942656.initial_effect(c)
...
@@ -34,13 +34,6 @@ function c94942656.initial_effect(c)
e3
:
SetTarget
(
c94942656
.
sptg
)
e3
:
SetTarget
(
c94942656
.
sptg
)
e3
:
SetOperation
(
c94942656
.
spop
)
e3
:
SetOperation
(
c94942656
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e4
:
SetOperation
(
c94942656
.
regop2
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
end
end
function
c94942656
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94942656
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
...
@@ -69,14 +62,11 @@ end
...
@@ -69,14 +62,11 @@ end
function
c94942656
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94942656
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
94942656
,
RESET_EVENT
+
RESET_TURN_SET
+
RESET_TOHAND
+
RESET_TODECK
+
RESET_TOFIELD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
94942656
,
3
))
e
:
GetHandler
():
RegisterFlagEffect
(
94942656
,
RESET_EVENT
+
RESET_TURN_SET
+
RESET_TOHAND
+
RESET_TODECK
+
RESET_TOFIELD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
94942656
,
3
))
end
end
function
c94942656
.
regop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetOverlayCount
()
e
:
GetLabelObject
():
SetLabel
(
ct
)
end
function
c94942656
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94942656
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetFlagEffect
(
94942656
)
>
0
and
e
:
GetLabel
()
>
0
local
ct
=
c
:
GetPreviousOverlayCountOnField
()
e
:
SetLabel
(
ct
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetFlagEffect
(
94942656
)
>
0
and
ct
>
0
end
end
function
c94942656
.
spfilter
(
c
,
e
,
tp
)
function
c94942656
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x168
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x168
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c97403510.lua
View file @
2cd179f5
...
@@ -86,7 +86,7 @@ function c97403510.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,7 +86,7 @@ function c97403510.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c97403510
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97403510
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
Get
OverlayCount
()
>
0
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
Get
PreviousOverlayCountOnField
()
>
0
end
end
function
c97403510
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97403510
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c98905.lua
View file @
2cd179f5
...
@@ -9,26 +9,9 @@ function c98905.initial_effect(c)
...
@@ -9,26 +9,9 @@ function c98905.initial_effect(c)
e1
:
SetTarget
(
c98905
.
target
)
e1
:
SetTarget
(
c98905
.
target
)
e1
:
SetOperation
(
c98905
.
activate
)
e1
:
SetOperation
(
c98905
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
not
c98905
.
global_check
then
c98905
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_TO_GRAVE
)
ge1
:
SetOperation
(
c98905
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c98905
.
callback
(
c
)
local
tp
=
c
:
GetPreviousControler
()
if
c
:
IsSetCard
(
0xe5
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsControler
(
tp
)
and
c
:
GetOverlayCount
()
>
0
then
c
:
RegisterFlagEffect
(
98905
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
end
function
c98905
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
eg
:
ForEach
(
c98905
.
callback
)
end
end
function
c98905
.
filter
(
c
,
e
,
tp
)
function
c98905
.
filter
(
c
,
e
,
tp
)
return
c
:
Get
FlagEffect
(
98905
)
~=
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
return
c
:
Get
PreviousOverlayCountOnField
(
)
~=
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c98905
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
c98905
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
...
...
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