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
953be8ae
Commit
953be8ae
authored
May 18, 2024
by
mercury233
Committed by
GitHub
May 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Auxiliary.tkfcon, fix Mecha Phantom Beast monsters and other (#2524)
parent
c803d1c5
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
29 additions
and
76 deletions
+29
-76
c15335853.lua
c15335853.lua
+1
-4
c16943770.lua
c16943770.lua
+1
-4
c17228908.lua
c17228908.lua
+2
-1
c1942635.lua
c1942635.lua
+1
-4
c20368763.lua
c20368763.lua
+1
-4
c22110647.lua
c22110647.lua
+1
-4
c2819435.lua
c2819435.lua
+4
-6
c30811116.lua
c30811116.lua
+1
-4
c31480215.lua
c31480215.lua
+1
-4
c31533704.lua
c31533704.lua
+1
-4
c41329458.lua
c41329458.lua
+1
-4
c44026393.lua
c44026393.lua
+1
-4
c4417407.lua
c4417407.lua
+1
-4
c66200210.lua
c66200210.lua
+1
-4
c67489919.lua
c67489919.lua
+1
-4
c67922702.lua
c67922702.lua
+1
-4
c72291078.lua
c72291078.lua
+1
-4
c76902476.lua
c76902476.lua
+1
-4
c89907227.lua
c89907227.lua
+1
-1
c94973028.lua
c94973028.lua
+1
-4
utility.lua
utility.lua
+5
-0
No files found.
c15335853.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c15335853.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c15335853.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c15335853
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -47,9 +47,6 @@ function c15335853.lvval(e,c)
...
@@ -47,9 +47,6 @@ function c15335853.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c15335853
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c15335853
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c15335853
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
nil
,
TYPE_TOKEN
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
nil
,
TYPE_TOKEN
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
1
,
nil
,
TYPE_TOKEN
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
1
,
nil
,
TYPE_TOKEN
)
...
...
c16943770.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c16943770.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c16943770.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c16943770
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -36,9 +36,6 @@ function c16943770.lvval(e,c)
...
@@ -36,9 +36,6 @@ function c16943770.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c16943770
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c16943770
.
cfilter
(
c
)
function
c16943770
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x101b
)
and
not
c
:
IsCode
(
16943770
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x101b
)
and
not
c
:
IsCode
(
16943770
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
...
c17228908.lua
View file @
953be8ae
...
@@ -81,7 +81,8 @@ function c17228908.tkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,7 +81,8 @@ function c17228908.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c17228908
.
tgcon
(
e
)
function
c17228908
.
tgcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_ONFIELD
,
1
,
nil
,
TYPE_TOKEN
)
local
tp
=
e
:
GetHandlerPlayer
()
return
aux
.
tkfcon
(
e
,
1
-
tp
)
end
end
function
c17228908
.
tglimit
(
e
,
c
)
function
c17228908
.
tglimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
...
...
c1942635.lua
View file @
953be8ae
...
@@ -11,7 +11,7 @@ function c1942635.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c1942635.initial_effect(c)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c1942635
.
atk
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
c1942635
.
atkval
)
e2
:
SetValue
(
c1942635
.
atkval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--draw
--draw
...
@@ -27,9 +27,6 @@ function c1942635.initial_effect(c)
...
@@ -27,9 +27,6 @@ function c1942635.initial_effect(c)
e3
:
SetOperation
(
c1942635
.
drop
)
e3
:
SetOperation
(
c1942635
.
drop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c1942635
.
atkcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c1942635
.
atkval
(
e
,
c
)
function
c1942635
.
atkval
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x134
)
and
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x134
)
and
c
:
IsType
(
TYPE_EFFECT
)
end
end
...
...
c20368763.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c20368763.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c20368763.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c20368763
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -49,9 +49,6 @@ function c20368763.lvval(e,c)
...
@@ -49,9 +49,6 @@ function c20368763.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c20368763
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c20368763
.
cfilter
(
c
,
tp
)
function
c20368763
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsReason
(
REASON_COST
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsReason
(
REASON_COST
)
end
end
...
...
c22110647.lua
View file @
953be8ae
...
@@ -9,7 +9,7 @@ function c22110647.initial_effect(c)
...
@@ -9,7 +9,7 @@ function c22110647.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c22110647
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -39,9 +39,6 @@ function c22110647.initial_effect(c)
...
@@ -39,9 +39,6 @@ function c22110647.initial_effect(c)
e5
:
SetOperation
(
c22110647
.
desop
)
e5
:
SetOperation
(
c22110647
.
desop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c22110647
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c22110647
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22110647
.
spcost
(
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
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
...
...
c2819435.lua
View file @
953be8ae
...
@@ -27,9 +27,10 @@ function c2819435.initial_effect(c)
...
@@ -27,9 +27,10 @@ function c2819435.initial_effect(c)
e6
:
SetDescription
(
aux
.
Stringid
(
2819435
,
1
))
e6
:
SetDescription
(
aux
.
Stringid
(
2819435
,
1
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e6
:
SetCode
(
EVENT_CHAINING
)
e6
:
SetCode
(
EVENT_CHAINING
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e6
:
SetCondition
(
c2819435
.
spcon
)
e6
:
SetCondition
(
c2819435
.
spcon
)
e6
:
SetCost
(
c2819435
.
cost
)
e6
:
SetCost
(
c2819435
.
cost
)
e6
:
SetTarget
(
c2819435
.
sptg
)
e6
:
SetTarget
(
c2819435
.
sptg
)
...
@@ -81,14 +82,11 @@ function c2819435.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,14 +82,11 @@ function c2819435.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c2819435
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c2819435
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
return
rp
==
1
-
tp
and
not
aux
.
tkfcon
(
e
,
tp
)
end
end
function
c2819435
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c2819435
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2819436
,
0xfa
,
TYPES_TOKEN_MONSTER
,
2000
,
2000
,
6
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2819436
,
0xfa
,
TYPES_TOKEN_MONSTER
,
2000
,
2000
,
6
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
and
e
:
GetHandler
():
GetFlagEffect
(
2819435
)
==
0
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
2819435
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
...
...
c30811116.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c30811116.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c30811116.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c30811116
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -47,9 +47,6 @@ function c30811116.lvval(e,c)
...
@@ -47,9 +47,6 @@ function c30811116.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c30811116
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c30811116
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c30811116
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
return
ep
~=
tp
end
end
...
...
c31480215.lua
View file @
953be8ae
...
@@ -6,7 +6,7 @@ function c31480215.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c31480215.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCondition
(
c31480215
.
ind
con
)
e1
:
SetCondition
(
aux
.
tkf
con
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
...
@@ -33,9 +33,6 @@ function c31480215.initial_effect(c)
...
@@ -33,9 +33,6 @@ function c31480215.initial_effect(c)
e4
:
SetOperation
(
c31480215
.
lvop
)
e4
:
SetOperation
(
c31480215
.
lvop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c31480215
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c31480215
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31480215
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_SYNCHRO
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_SYNCHRO
and
e
:
GetHandler
():
GetReasonCard
():
IsRace
(
RACE_MACHINE
)
and
e
:
GetHandler
():
GetReasonCard
():
IsRace
(
RACE_MACHINE
)
...
...
c31533704.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c31533704.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c31533704.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c31533704
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -48,9 +48,6 @@ function c31533704.lvval(e,c)
...
@@ -48,9 +48,6 @@ function c31533704.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c31533704
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c31533704
.
spfilter
(
c
,
tp
)
function
c31533704
.
spfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsType
(
TYPE_TOKEN
)
return
c
:
IsControler
(
tp
)
and
c
:
IsType
(
TYPE_TOKEN
)
end
end
...
...
c41329458.lua
View file @
953be8ae
...
@@ -17,7 +17,7 @@ function c41329458.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c41329458.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c41329458
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -35,9 +35,6 @@ function c41329458.initial_effect(c)
...
@@ -35,9 +35,6 @@ function c41329458.initial_effect(c)
e4
:
SetOperation
(
c41329458
.
spop2
)
e4
:
SetOperation
(
c41329458
.
spop2
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c41329458
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c41329458
.
rfilter
(
c
,
tp
)
function
c41329458
.
rfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x101b
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
c
:
IsSetCard
(
0x101b
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
end
...
...
c44026393.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c44026393.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c44026393.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c44026393
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -35,9 +35,6 @@ function c44026393.lvval(e,c)
...
@@ -35,9 +35,6 @@ function c44026393.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c44026393
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c44026393
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44026393
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
...
...
c4417407.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c4417407.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c4417407.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c4417407
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -48,9 +48,6 @@ function c4417407.lvval(e,c)
...
@@ -48,9 +48,6 @@ function c4417407.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c4417407
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c4417407
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4417407
.
sptg
(
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_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
...
...
c66200210.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c66200210.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c66200210.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c66200210
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -46,9 +46,6 @@ function c66200210.lvval(e,c)
...
@@ -46,9 +46,6 @@ function c66200210.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c66200210
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c66200210
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66200210
.
sptg
(
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_TOKEN
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
...
...
c67489919.lua
View file @
953be8ae
...
@@ -6,7 +6,7 @@ function c67489919.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c67489919.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCondition
(
c67489919
.
ind
con
)
e1
:
SetCondition
(
aux
.
tkf
con
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
...
@@ -38,9 +38,6 @@ function c67489919.initial_effect(c)
...
@@ -38,9 +38,6 @@ function c67489919.initial_effect(c)
e6
:
SetValue
(
LOCATION_MZONE
+
LOCATION_HAND
)
e6
:
SetValue
(
LOCATION_MZONE
+
LOCATION_HAND
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
c67489919
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c67489919
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67489919
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
...
...
c67922702.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c67922702.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c67922702.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c67922702
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -47,9 +47,6 @@ function c67922702.lvval(e,c)
...
@@ -47,9 +47,6 @@ function c67922702.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c67922702
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c67922702
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c67922702
.
sptg
(
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_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
...
...
c72291078.lua
View file @
953be8ae
...
@@ -6,7 +6,7 @@ function c72291078.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c72291078.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCondition
(
c72291078
.
ind
con
)
e1
:
SetCondition
(
aux
.
tkf
con
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
...
@@ -34,9 +34,6 @@ function c72291078.initial_effect(c)
...
@@ -34,9 +34,6 @@ function c72291078.initial_effect(c)
e4
:
SetOperation
(
c72291078
.
spop
)
e4
:
SetOperation
(
c72291078
.
spop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c72291078
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c72291078
.
filter
(
c
)
function
c72291078
.
filter
(
c
)
return
c
:
IsSetCard
(
0x101b
)
and
c
:
IsSummonable
(
true
,
nil
)
return
c
:
IsSetCard
(
0x101b
)
and
c
:
IsSummonable
(
true
,
nil
)
end
end
...
...
c76902476.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c76902476.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c76902476.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c76902476
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -35,9 +35,6 @@ function c76902476.lvval(e,c)
...
@@ -35,9 +35,6 @@ function c76902476.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c76902476
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c76902476
.
indtg
(
e
,
c
)
function
c76902476
.
indtg
(
e
,
c
)
return
c
:
IsCode
(
31533705
)
return
c
:
IsCode
(
31533705
)
end
end
...
...
c89907227.lua
View file @
953be8ae
...
@@ -56,7 +56,7 @@ function c89907227.tkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c89907227.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c89907227
.
tkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c89907227
.
tkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
return
Duel
.
IsTurnPlayer
(
1
-
tp
)
and
not
aux
.
tkfcon
(
e
,
tp
)
end
end
function
c89907227
.
tkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c89907227
.
tkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
...
...
c94973028.lua
View file @
953be8ae
...
@@ -14,7 +14,7 @@ function c94973028.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c94973028.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
c94973028
.
ind
con
)
e2
:
SetCondition
(
aux
.
tkf
con
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
...
@@ -47,9 +47,6 @@ function c94973028.lvval(e,c)
...
@@ -47,9 +47,6 @@ function c94973028.lvval(e,c)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
return
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
31533705
):
GetSum
(
Card
.
GetLevel
)
end
end
function
c94973028
.
indcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
function
c94973028
.
cfilter
(
c
)
function
c94973028
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x101b
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x101b
)
end
end
...
...
utility.lua
View file @
953be8ae
...
@@ -729,6 +729,11 @@ function Auxiliary.MaterialReasonCardReg(e,tp,eg,ep,ev,re,r,rp)
...
@@ -729,6 +729,11 @@ function Auxiliary.MaterialReasonCardReg(e,tp,eg,ep,ev,re,r,rp)
local
te
=
e
:
GetLabelObject
()
local
te
=
e
:
GetLabelObject
()
c
:
GetReasonCard
():
CreateEffectRelation
(
te
)
c
:
GetReasonCard
():
CreateEffectRelation
(
te
)
end
end
--the player tp has token on the field
function
Auxiliary
.
tkfcon
(
e
,
tp
)
if
tp
==
nil
and
e
~=
nil
then
tp
=
e
:
GetHandlerPlayer
()
end
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
--effects inflicting damage to tp
--effects inflicting damage to tp
function
Auxiliary
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Auxiliary
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DAMAGE
)
local
e1
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DAMAGE
)
...
...
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