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
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
Vee4
ygopro-scripts-888
Commits
bbda0f0d
Commit
bbda0f0d
authored
Sep 21, 2024
by
mercury233
Committed by
GitHub
Sep 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add aux.IsCodeOrListed (#2667)
parent
22e9ac17
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
28 additions
and
28 deletions
+28
-28
c11587414.lua
c11587414.lua
+1
-1
c12266229.lua
c12266229.lua
+1
-1
c13650422.lua
c13650422.lua
+1
-1
c23020408.lua
c23020408.lua
+1
-1
c23147658.lua
c23147658.lua
+1
-2
c34690953.lua
c34690953.lua
+1
-1
c45883110.lua
c45883110.lua
+2
-2
c48589580.lua
c48589580.lua
+1
-1
c54092240.lua
c54092240.lua
+1
-1
c54878729.lua
c54878729.lua
+1
-1
c6128460.lua
c6128460.lua
+1
-1
c62991792.lua
c62991792.lua
+1
-2
c63542003.lua
c63542003.lua
+1
-1
c64927055.lua
c64927055.lua
+1
-1
c66961194.lua
c66961194.lua
+1
-1
c69167267.lua
c69167267.lua
+1
-1
c74431740.lua
c74431740.lua
+1
-1
c74644400.lua
c74644400.lua
+1
-2
c80839052.lua
c80839052.lua
+1
-1
c84778110.lua
c84778110.lua
+1
-1
c90290572.lua
c90290572.lua
+1
-1
c90312154.lua
c90312154.lua
+1
-1
c91500017.lua
c91500017.lua
+1
-1
c98173209.lua
c98173209.lua
+1
-1
utility.lua
utility.lua
+3
-0
No files found.
c11587414.lua
View file @
bbda0f0d
...
...
@@ -30,7 +30,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
filter
(
c
)
return
(
c
:
IsCode
(
10000010
)
or
aux
.
IsCodeListed
(
c
,
10000010
)
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeOrListed
(
c
,
10000010
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsAbleToHand
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c12266229.lua
View file @
bbda0f0d
...
...
@@ -31,7 +31,7 @@ function c12266229.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
end
function
c12266229
.
thfilter
(
c
)
return
(
c
:
IsCode
(
46986414
)
or
aux
.
IsCodeListed
(
c
,
46986414
)
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeOrListed
(
c
,
46986414
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsType
(
TYPE_RITUAL
)
end
function
c12266229
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c13650422.lua
View file @
bbda0f0d
...
...
@@ -24,7 +24,7 @@ function c13650422.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c13650422
.
filter
(
c
)
return
(
aux
.
IsCodeListed
(
c
,
94820406
)
or
c
:
IsCode
(
94820406
)
)
and
not
c
:
IsCode
(
13650422
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeOrListed
(
c
,
94820406
)
and
not
c
:
IsCode
(
13650422
)
and
c
:
IsAbleToHand
()
end
function
c13650422
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13650422
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c23020408.lua
View file @
bbda0f0d
...
...
@@ -23,7 +23,7 @@ function c23020408.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c23020408
.
filter
(
c
)
return
(
aux
.
IsCode
Listed
(
c
,
46986414
)
or
aux
.
IsCodeListed
(
c
,
38033121
)
or
c
:
IsCode
(
46986414
))
and
not
c
:
IsCode
(
23020408
)
return
(
aux
.
IsCode
OrListed
(
c
,
46986414
)
or
aux
.
IsCodeOrListed
(
c
,
38033121
))
and
not
c
:
IsCode
(
23020408
)
and
(
c
:
IsAbleToDeck
()
or
c
:
IsLocation
(
LOCATION_DECK
))
end
function
c23020408
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c23147658.lua
View file @
bbda0f0d
...
...
@@ -29,8 +29,7 @@ function c23147658.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c23147658
.
thfilter
(
c
)
if
not
c
:
IsAbleToHand
()
or
c
:
IsCode
(
23147658
)
then
return
false
end
return
c
:
IsCode
(
59419719
)
or
aux
.
IsCodeListed
(
c
,
59419719
)
return
aux
.
IsCodeOrListed
(
c
,
59419719
)
and
not
c
:
IsCode
(
23147658
)
and
c
:
IsAbleToHand
()
end
function
c23147658
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
...
...
c34690953.lua
View file @
bbda0f0d
...
...
@@ -33,7 +33,7 @@ function c34690953.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
34690953
,
ACTIVITY_SPSUMMON
,
c34690953
.
counterfilter
)
end
function
c34690953
.
counterfilter
(
c
)
return
aux
.
IsCode
Listed
(
c
,
3285552
)
or
c
:
IsCode
(
3285552
)
return
aux
.
IsCode
OrListed
(
c
,
3285552
)
end
function
c34690953
.
tkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
34690953
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
...
...
c45883110.lua
View file @
bbda0f0d
...
...
@@ -30,7 +30,7 @@ function c45883110.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c45883110
.
tgfilter
(
c
)
return
(
c
:
IsCode
(
68468459
)
or
aux
.
IsCodeListed
(
c
,
68468459
)
)
and
c
:
IsAbleToGrave
()
return
aux
.
IsCodeOrListed
(
c
,
68468459
)
and
c
:
IsAbleToGrave
()
end
function
c45883110
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c45883110
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -47,7 +47,7 @@ function c45883110.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_EXTRA
)
end
function
c45883110
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsCode
(
68468459
)
or
aux
.
IsCodeListed
(
c
,
68468459
)
)
and
not
c
:
IsCode
(
45883110
)
return
aux
.
IsCodeOrListed
(
c
,
68468459
)
and
not
c
:
IsCode
(
45883110
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c45883110
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c48589580.lua
View file @
bbda0f0d
...
...
@@ -35,7 +35,7 @@ function c48589580.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c48589580
.
thfilter
(
c
,
thchk
)
return
(
c
:
IsCode
(
56433456
)
or
aux
.
IsCodeListed
(
c
,
56433456
)
or
(
thchk
and
c
:
IsRace
(
RACE_FAIRY
)
))
and
c
:
IsAbleToHand
()
return
(
aux
.
IsCodeOrListed
(
c
,
56433456
)
or
thchk
and
c
:
IsRace
(
RACE_FAIRY
))
and
c
:
IsAbleToHand
()
end
function
c48589580
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
thchk
=
Duel
.
IsEnvironment
(
56433456
)
...
...
c54092240.lua
View file @
bbda0f0d
...
...
@@ -26,7 +26,7 @@ function c54092240.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
54092240
,
ACTIVITY_SPSUMMON
,
c54092240
.
counterfilter
)
end
function
c54092240
.
counterfilter
(
c
)
return
aux
.
IsCode
Listed
(
c
,
3285552
)
or
c
:
IsCode
(
3285552
)
return
aux
.
IsCode
OrListed
(
c
,
3285552
)
end
function
c54092240
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
3285552
)
...
...
c54878729.lua
View file @
bbda0f0d
...
...
@@ -13,7 +13,7 @@ function c54878729.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c54878729
.
filter
(
c
,
code
)
return
not
c
:
IsCode
(
54878729
)
and
(
c
:
IsCode
(
code
)
or
aux
.
IsCodeListed
(
c
,
code
)
)
and
c
:
IsAbleToGrave
()
return
not
c
:
IsCode
(
54878729
)
and
aux
.
IsCodeOrListed
(
c
,
code
)
and
c
:
IsAbleToGrave
()
end
function
c54878729
.
chkfunc
(
g
,
attr
,
tp
,
code
)
return
g
:
IsExists
(
Card
.
IsAttribute
,
1
,
nil
,
attr
)
and
Duel
.
IsExistingMatchingCard
(
c54878729
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
code
)
...
...
c6128460.lua
View file @
bbda0f0d
...
...
@@ -38,7 +38,7 @@ function c6128460.repop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_DISCARD
)
end
function
c6128460
.
thfilter
(
c
)
return
(
aux
.
IsCodeListed
(
c
,
32274490
)
or
c
:
IsCode
(
32274490
)
)
and
not
c
:
IsCode
(
6128460
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeOrListed
(
c
,
32274490
)
and
not
c
:
IsCode
(
6128460
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c6128460
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
c62991792.lua
View file @
bbda0f0d
...
...
@@ -58,8 +58,7 @@ function s.repfilter(c,tp)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
s
.
confilter
(
c
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsFaceup
()
and
(
c
:
IsCode
(
70902743
)
or
aux
.
IsCodeListed
(
c
,
70902743
))
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsFaceup
()
and
aux
.
IsCodeOrListed
(
c
,
70902743
)
end
function
s
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
s
.
repfilter
,
1
,
nil
,
tp
)
...
...
c63542003.lua
View file @
bbda0f0d
...
...
@@ -33,7 +33,7 @@ function c63542003.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
c63542003
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
e
:
GetHandler
())
end
function
c63542003
.
thfilter
(
c
)
return
(
c
:
IsCode
(
17484499
)
or
aux
.
IsCodeListed
(
c
,
17484499
)
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeOrListed
(
c
,
17484499
)
and
c
:
IsAbleToHand
()
end
function
c63542003
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c64927055.lua
View file @
bbda0f0d
...
...
@@ -28,7 +28,7 @@ function c64927055.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c64927055
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
56433456
)
or
aux
.
IsCodeListed
(
c
,
56433456
)
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceup
()
and
aux
.
IsCodeOrListed
(
c
,
56433456
)
and
c
:
IsAbleToHand
()
end
function
c64927055
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c66961194.lua
View file @
bbda0f0d
...
...
@@ -54,7 +54,7 @@ function c66961194.spop1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c66961194
.
spcostfilter2
(
c
)
return
(
c
:
IsCode
(
89631139
)
or
aux
.
IsCodeListed
(
c
,
89631139
)
)
and
c
:
IsDiscardable
()
return
aux
.
IsCodeOrListed
(
c
,
89631139
)
and
c
:
IsDiscardable
()
end
function
c66961194
.
spcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c66961194
.
spcostfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
c69167267.lua
View file @
bbda0f0d
...
...
@@ -43,7 +43,7 @@ function c69167267.spcon2(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEDOWN
)
end
function
c69167267
.
spfilter2
(
c
,
e
,
tp
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
and
(
c
:
IsCode
(
73580471
)
or
aux
.
IsCodeListed
(
c
,
73580471
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsFaceupEx
()
and
aux
.
IsCodeOrListed
(
c
,
73580471
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c69167267
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c69167267
.
spfilter2
(
chkc
,
e
,
tp
)
end
...
...
c74431740.lua
View file @
bbda0f0d
...
...
@@ -59,7 +59,7 @@ function c74431740.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c74431740
.
tdfilter
(
c
,
e
)
return
not
c
:
IsCode
(
74431740
)
and
(
aux
.
IsCodeListed
(
c
,
80280737
)
or
c
:
IsCode
(
80280737
)
)
and
c
:
IsAbleToDeck
()
return
not
c
:
IsCode
(
74431740
)
and
aux
.
IsCodeOrListed
(
c
,
80280737
)
and
c
:
IsAbleToDeck
()
and
(
not
e
or
c
:
IsCanBeEffectTarget
(
e
))
end
function
c74431740
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c74644400.lua
View file @
bbda0f0d
...
...
@@ -29,8 +29,7 @@ function c74644400.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c74644400
.
thfilter
(
c
)
return
(
aux
.
IsCodeListed
(
c
,
80280737
)
or
c
:
IsCode
(
80280737
))
and
not
c
:
IsCode
(
74644400
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeOrListed
(
c
,
80280737
)
and
not
c
:
IsCode
(
74644400
)
and
c
:
IsAbleToHand
()
end
function
c74644400
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c74644400
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c80839052.lua
View file @
bbda0f0d
...
...
@@ -45,7 +45,7 @@ function c80839052.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c80839052
.
thfilter
(
c
)
return
c
:
IsAbleToHand
()
and
(
not
c
:
IsCode
(
80839052
))
and
(
aux
.
IsCodeListed
(
c
,
36623431
)
or
c
:
IsCode
(
36623431
)
)
return
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
80839052
)
and
aux
.
IsCodeOrListed
(
c
,
36623431
)
end
function
c80839052
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80839052
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c84778110.lua
View file @
bbda0f0d
...
...
@@ -51,7 +51,7 @@ function c84778110.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
500
)
end
function
c84778110
.
rfilter
(
c
)
return
(
aux
.
IsCodeListed
(
c
,
59419719
)
or
c
:
IsCode
(
59419719
)
)
and
c
:
IsFaceup
()
return
aux
.
IsCodeOrListed
(
c
,
59419719
)
and
c
:
IsFaceup
()
end
function
c84778110
.
cfilter
(
c
)
return
c
:
IsCode
(
59419719
)
...
...
c90290572.lua
View file @
bbda0f0d
...
...
@@ -33,7 +33,7 @@ function c90290572.condition(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c90290572
.
tgfilter
(
c
)
return
(
c
:
IsCode
(
56433456
)
or
aux
.
IsCodeListed
(
c
,
56433456
)
)
and
c
:
IsAbleToGrave
()
return
aux
.
IsCodeOrListed
(
c
,
56433456
)
and
c
:
IsAbleToGrave
()
end
function
c90290572
.
thfilter
(
c
)
return
c
:
IsCode
(
91188343
)
and
c
:
IsAbleToHand
()
...
...
c90312154.lua
View file @
bbda0f0d
...
...
@@ -25,7 +25,7 @@ function c90312154.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c90312154
.
filter
(
c
,
ft
)
return
(
c
:
IsCode
(
56433456
)
or
aux
.
IsCodeListed
(
c
,
56433456
)
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
aux
.
IsCodeOrListed
(
c
,
56433456
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
and
(
ft
==
nil
or
ft
>
0
or
c
:
IsType
(
TYPE_FIELD
))
end
function
c90312154
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c91500017.lua
View file @
bbda0f0d
...
...
@@ -21,7 +21,7 @@ function c91500017.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c91500017
.
filter
(
c
)
return
(
aux
.
IsCodeListed
(
c
,
15259703
)
or
c
:
IsCode
(
15259703
)
)
and
not
c
:
IsCode
(
91500017
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeOrListed
(
c
,
15259703
)
and
not
c
:
IsCode
(
91500017
)
and
c
:
IsAbleToHand
()
end
function
c91500017
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c91500017
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c98173209.lua
View file @
bbda0f0d
...
...
@@ -44,7 +44,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
s
.
filter
(
c
)
return
(
c
:
IsCode
(
70902743
)
or
aux
.
IsCodeListed
(
c
,
70902743
)
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
id
)
return
aux
.
IsCodeOrListed
(
c
,
70902743
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
id
)
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
utility.lua
View file @
bbda0f0d
...
...
@@ -502,6 +502,9 @@ end
function
Auxiliary
.
IsCodeListed
(
c
,
code
)
return
c
.
card_code_list
and
c
.
card_code_list
[
code
]
end
function
Auxiliary
.
IsCodeOrListed
(
c
,
code
)
return
c
:
IsCode
(
code
)
or
Auxiliary
.
IsCodeListed
(
c
,
code
)
end
function
Auxiliary
.
AddSetNameMonsterList
(
c
,
...
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
return
end
if
c
.
setcode_monster_list
==
nil
then
...
...
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