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
3
Merge Requests
3
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
c3a1ed31
Commit
c3a1ed31
authored
Aug 29, 2024
by
wind2009
Committed by
GitHub
Aug 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update setcode (#2636)
parent
eda2b40e
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
34 additions
and
34 deletions
+34
-34
c15216188.lua
c15216188.lua
+1
-1
c16968936.lua
c16968936.lua
+3
-3
c20934683.lua
c20934683.lua
+2
-2
c27268998.lua
c27268998.lua
+1
-1
c28273805.lua
c28273805.lua
+3
-3
c29157292.lua
c29157292.lua
+1
-1
c34235530.lua
c34235530.lua
+2
-2
c42201897.lua
c42201897.lua
+1
-1
c46174776.lua
c46174776.lua
+1
-1
c46396218.lua
c46396218.lua
+1
-1
c53753697.lua
c53753697.lua
+1
-1
c66328392.lua
c66328392.lua
+2
-2
c70634245.lua
c70634245.lua
+2
-2
c73391962.lua
c73391962.lua
+2
-2
c77751766.lua
c77751766.lua
+1
-1
c80570228.lua
c80570228.lua
+3
-3
c80870883.lua
c80870883.lua
+1
-1
c81756619.lua
c81756619.lua
+1
-1
c94661166.lua
c94661166.lua
+2
-2
c94845588.lua
c94845588.lua
+2
-2
c9785661.lua
c9785661.lua
+1
-1
No files found.
c15216188.lua
View file @
c3a1ed31
...
...
@@ -38,7 +38,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
s
.
dcfilter
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x1b
b
)
and
c
:
IsType
(
TYPE_TRAP
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x1b
a
)
and
c
:
IsType
(
TYPE_TRAP
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c16968936.lua
View file @
c3a1ed31
...
...
@@ -33,7 +33,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
spfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsCode
(
id
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
10
3d
)
and
not
c
:
IsCode
(
id
)
end
function
s
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -44,7 +44,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
1ba
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
203d
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
@@ -59,7 +59,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_SYNCHRO
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3d
)
return
bit
.
band
(
r
,
REASON_SYNCHRO
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x
10
3d
)
end
function
s
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c20934683.lua
View file @
c3a1ed31
...
...
@@ -33,7 +33,7 @@ end
function
s
.
filter
(
c
,
e
,
tp
,
mg
)
if
c
:
GetLevel
()
<
4
then
return
false
end
local
ct
=
math.floor
(
c
:
GetLevel
()
/
4
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x1b
d
)
and
c
:
CheckFusionMaterial
()
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x1b
c
)
and
c
:
CheckFusionMaterial
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
mg
:
CheckSubGroup
(
s
.
gcheck
,
ct
,
ct
,
tp
,
c
)
end
...
...
@@ -70,7 +70,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1b
d
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x1b
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
c27268998.lua
View file @
c3a1ed31
...
...
@@ -44,7 +44,7 @@ function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
end
function
s
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
b
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x1b
a
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c28273805.lua
View file @
c3a1ed31
...
...
@@ -24,13 +24,13 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsAttackBelow
(
2000
)
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsAttackBelow
(
2000
)
and
c
:
IsSetCard
(
0x
10
3d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
posfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttackBelow
(
2000
)
and
c
:
IsCanTurnSet
()
end
function
s
.
bfilter
(
c
)
return
c
:
IsSetCard
(
0x3d
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x
10
3d
)
and
c
:
IsFaceup
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -90,7 +90,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x3d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
10
3d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
thfilter
(
chkc
)
end
...
...
c29157292.lua
View file @
c3a1ed31
...
...
@@ -36,7 +36,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
s
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
b
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x1b
a
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c34235530.lua
View file @
c3a1ed31
...
...
@@ -2,7 +2,7 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_WARRIOR
),
aux
.
NonTuner
(
Card
.
IsSetCard
,
0x3d
),
1
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_WARRIOR
),
aux
.
NonTuner
(
Card
.
IsSetCard
,
0x
10
3d
),
1
)
c
:
EnableReviveLimit
()
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -43,7 +43,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
s
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x3d
)
or
c
:
IsSetCard
(
0x20
)
and
c
:
IsType
(
TYPE_EFFECT
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
(
c
:
IsSetCard
(
0x
10
3d
)
or
c
:
IsSetCard
(
0x20
)
and
c
:
IsType
(
TYPE_EFFECT
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
c42201897.lua
View file @
c3a1ed31
...
...
@@ -29,7 +29,7 @@ s.fusion_effect=true
function
s
.
filter
(
c
,
e
,
tp
,
mg
)
if
c
:
GetLevel
()
<
4
then
return
false
end
local
ct
=
math.floor
(
c
:
GetLevel
()
/
4
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x1b
d
)
and
c
:
CheckFusionMaterial
()
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x1b
c
)
and
c
:
CheckFusionMaterial
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
mg
:
CheckSubGroup
(
s
.
gcheck
,
ct
,
ct
,
tp
,
c
)
end
...
...
c46174776.lua
View file @
c3a1ed31
...
...
@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
re
:
GetHandler
():
IsCode
(
id
)
and
re
:
GetHandler
():
IsSetCard
(
0x1b
d
,
0x19e
)
return
not
re
:
GetHandler
():
IsCode
(
id
)
and
re
:
GetHandler
():
IsSetCard
(
0x1b
c
,
0x19e
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
end
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c46396218.lua
View file @
c3a1ed31
...
...
@@ -43,7 +43,7 @@ function s.mfilter(c)
return
c
:
IsFusionAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
end
function
s
.
damtg
(
e
,
c
)
return
c
:
IsSetCard
(
0x1b
d
)
and
not
c
:
IsCode
(
id
)
return
c
:
IsSetCard
(
0x1b
c
)
and
not
c
:
IsCode
(
id
)
end
function
s
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
IsChainDisablable
(
ev
)
...
...
c53753697.lua
View file @
c3a1ed31
...
...
@@ -58,7 +58,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
b
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x1b
a
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c66328392.lua
View file @
c3a1ed31
...
...
@@ -60,7 +60,7 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
d
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x1b
c
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -81,7 +81,7 @@ function s.lpcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
s
.
cfilter2
,
1
,
nil
,
1
-
tp
)
end
function
s
.
lptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsSetCard
,
Card
.
IsFaceup
),
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x1b
d
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsSetCard
,
Card
.
IsFaceup
),
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x1b
c
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1500
)
end
function
s
.
lpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c70634245.lua
View file @
c3a1ed31
...
...
@@ -46,7 +46,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
s
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x3d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x
10
3d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
s
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
...
...
@@ -82,7 +82,7 @@ function s.adcon(e,tp,eg,ep,ev,re,r,rp)
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
10
3d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c73391962.lua
View file @
c3a1ed31
...
...
@@ -48,7 +48,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
d
,
0x19e
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x1b
c
,
0x19e
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -63,7 +63,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
atkfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x1b
c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
end
function
s
.
val
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
...
...
c77751766.lua
View file @
c3a1ed31
...
...
@@ -48,7 +48,7 @@ function s.ccon2(e,tp,eg,ep,ev,re,r,rp)
and
eg
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_DECK
)
end
function
s
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
e
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x1b
d
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
s
.
cop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c80570228.lua
View file @
c3a1ed31
...
...
@@ -33,7 +33,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
spfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsCode
(
id
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
10
3d
)
and
not
c
:
IsCode
(
id
)
end
function
s
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -44,7 +44,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x3d
)
and
bit
.
band
(
c
:
GetType
(),
TYPE_SPELL
+
TYPE_QUICKPLAY
)
==
TYPE_SPELL
+
TYPE_QUICKPLAY
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
10
3d
)
and
bit
.
band
(
c
:
GetType
(),
TYPE_SPELL
+
TYPE_QUICKPLAY
)
==
TYPE_SPELL
+
TYPE_QUICKPLAY
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -59,7 +59,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_SYNCHRO
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3d
)
return
bit
.
band
(
r
,
REASON_SYNCHRO
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x
10
3d
)
end
function
s
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c80870883.lua
View file @
c3a1ed31
...
...
@@ -44,7 +44,7 @@ function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
end
function
s
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
b
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x1b
a
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c81756619.lua
View file @
c3a1ed31
...
...
@@ -56,7 +56,7 @@ function s.aclimit(e,re,tp)
return
re
:
GetActivateLocation
()
==
LOCATION_HAND
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
c
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x1b
b
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c94661166.lua
View file @
c3a1ed31
...
...
@@ -26,7 +26,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
s
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x1b
b
)
and
c
:
IsType
(
TYPE_TRAP
)
or
aux
.
IsCodeListed
(
c
,
89812483
)
and
c
:
IsType
(
TYPE_MONSTER
))
and
c
:
IsAbleToHand
()
return
(
c
:
IsSetCard
(
0x1b
a
)
and
c
:
IsType
(
TYPE_TRAP
)
or
aux
.
IsCodeListed
(
c
,
89812483
)
and
c
:
IsType
(
TYPE_MONSTER
))
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
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
@@ -41,7 +41,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1b
b
)
and
c
:
IsType
(
TYPE_TRAP
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1b
a
)
and
c
:
IsType
(
TYPE_TRAP
)
end
function
s
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
...
c94845588.lua
View file @
c3a1ed31
...
...
@@ -26,7 +26,7 @@ s.fusion_effect=true
function
s
.
filter
(
c
,
e
,
tp
,
mg
)
if
c
:
GetLevel
()
<
4
then
return
false
end
local
ct
=
math.floor
(
c
:
GetLevel
()
/
4
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x1b
d
)
and
c
:
CheckFusionMaterial
()
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x1b
c
)
and
c
:
CheckFusionMaterial
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
mg
:
CheckSubGroup
(
s
.
gcheck
,
ct
,
ct
,
tp
,
c
)
end
...
...
@@ -64,7 +64,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
tdfilter
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
and
c
:
IsSetCard
(
0x1b
d
)
and
c
:
IsAbleToDeck
()
and
c
:
IsSetCard
(
0x1b
c
)
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
...
...
c9785661.lua
View file @
c3a1ed31
...
...
@@ -46,7 +46,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x1b
d
,
0x19e
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x1b
c
,
0x19e
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
thfilter
(
chkc
)
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