Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
9f405f00
Commit
9f405f00
authored
Jul 25, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
95b84bbd
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
107 additions
and
117 deletions
+107
-117
expansions/script/c11451500.lua
expansions/script/c11451500.lua
+1
-0
expansions/script/c11451531.lua
expansions/script/c11451531.lua
+1
-1
expansions/script/c11451532.lua
expansions/script/c11451532.lua
+1
-1
expansions/script/c11451533.lua
expansions/script/c11451533.lua
+1
-1
expansions/script/c11451534.lua
expansions/script/c11451534.lua
+1
-1
expansions/script/c11451535.lua
expansions/script/c11451535.lua
+1
-1
expansions/script/c11451536.lua
expansions/script/c11451536.lua
+1
-1
expansions/script/c11451619.lua
expansions/script/c11451619.lua
+1
-1
expansions/script/c13257231.lua
expansions/script/c13257231.lua
+1
-1
expansions/script/c189111.lua
expansions/script/c189111.lua
+3
-0
expansions/script/c25000023.lua
expansions/script/c25000023.lua
+1
-2
expansions/script/c72412150.lua
expansions/script/c72412150.lua
+7
-8
expansions/script/c72412160.lua
expansions/script/c72412160.lua
+7
-8
expansions/script/c72412170.lua
expansions/script/c72412170.lua
+7
-8
expansions/script/c72412180.lua
expansions/script/c72412180.lua
+7
-9
expansions/script/c72412190.lua
expansions/script/c72412190.lua
+7
-8
expansions/script/c72412200.lua
expansions/script/c72412200.lua
+7
-8
expansions/script/c72412210.lua
expansions/script/c72412210.lua
+7
-9
expansions/script/c72412220.lua
expansions/script/c72412220.lua
+7
-8
expansions/script/c72412230.lua
expansions/script/c72412230.lua
+7
-8
expansions/script/c72412240.lua
expansions/script/c72412240.lua
+10
-11
expansions/script/c72412250.lua
expansions/script/c72412250.lua
+7
-8
expansions/script/c72412260.lua
expansions/script/c72412260.lua
+8
-10
expansions/script/c72412340.lua
expansions/script/c72412340.lua
+6
-4
No files found.
expansions/script/c11451500.lua
View file @
9f405f00
...
...
@@ -12,6 +12,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
execution
)
c
:
RegisterEffect
(
e1
)
end
cm
.
toss_coin
=
true
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
end
...
...
expansions/script/c11451531.lua
View file @
9f405f00
...
...
@@ -71,7 +71,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
GetOriginalCode
()
~=
m
and
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
))
then
e
:
Reset
()
return
false
else
...
...
expansions/script/c11451532.lua
View file @
9f405f00
...
...
@@ -71,7 +71,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
GetOriginalCode
()
~=
m
and
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
))
then
e
:
Reset
()
return
false
else
...
...
expansions/script/c11451533.lua
View file @
9f405f00
...
...
@@ -80,7 +80,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
GetOriginalCode
()
~=
m
and
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
))
then
e
:
Reset
()
return
false
else
...
...
expansions/script/c11451534.lua
View file @
9f405f00
...
...
@@ -101,7 +101,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
GetOriginalCode
()
~=
m
and
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
))
then
e
:
Reset
()
return
false
else
...
...
expansions/script/c11451535.lua
View file @
9f405f00
...
...
@@ -66,7 +66,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
GetOriginalCode
()
~=
m
and
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
))
then
e
:
Reset
()
return
false
else
...
...
expansions/script/c11451536.lua
View file @
9f405f00
...
...
@@ -66,7 +66,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
then
if
c
:
GetFlagEffect
(
m
)
==
0
or
not
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
GetOriginalCode
()
~=
m
and
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
))
then
e
:
Reset
()
return
false
else
...
...
expansions/script/c11451619.lua
View file @
9f405f00
...
...
@@ -41,7 +41,7 @@ function cm.dptcheck(g)
end
function
cm
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
mg
:
CheckSubGroup
(
cm
.
dptcheck
,
2
,
99
)
and
e
:
GetHandler
():
IsSSetable
()
return
mg
:
CheckSubGroup
(
cm
.
dptcheck
,
2
,
99
)
and
e
:
GetHandler
():
IsSSetable
()
and
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
end
function
cm
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c13257231.lua
View file @
9f405f00
...
...
@@ -70,7 +70,7 @@ function cm.initial_effect(c)
end
function
cm
.
counterfilter
(
c
)
return
not
c
:
IsRace
(
RACE_MACHINE
)
return
c
:
IsRace
(
RACE_MACHINE
)
end
function
cm
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
tama
.
cosmicBattleship_equipShield
(
e
:
GetHandler
(),
2
)
...
...
expansions/script/c189111.lua
View file @
9f405f00
...
...
@@ -2,6 +2,9 @@ local m=189111
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"半洗孤钻-傀影"
function
cm
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
6
,
2
)
c
:
EnableReviveLimit
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
...
...
expansions/script/c25000023.lua
View file @
9f405f00
...
...
@@ -29,7 +29,6 @@ function c25000023.initial_effect(c)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c25000023
.
condition
)
e2
:
SetTarget
(
c25000023
.
target
)
e2
:
SetOperation
(
c25000023
.
operation
)
c
:
RegisterEffect
(
e2
)
--Remove
...
...
@@ -60,7 +59,7 @@ function c25000023.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c25000023
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
eg
:
FilterCount
(
c25000023
.
filter
,
nil
,
tp
)
Duel
.
Recover
(
1
-
tp
,
ct
*
300
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
ct
*
300
,
REASON_EFFECT
)
end
function
c25000023
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
...
...
expansions/script/c72412150.lua
View file @
9f405f00
...
...
@@ -16,7 +16,7 @@ function c72412150.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
72412151
)
...
...
@@ -47,9 +47,6 @@ function c72412150.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c72412150
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412160
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412150
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412150
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -60,17 +57,19 @@ function c72412150.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412150
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412150
.
thfilter2
(
c
)
return
c72412150
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412150
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412160
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412150
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412150
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412150
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412150
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412150
)
==
0
end
function
c72412150
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412150
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412150
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412150
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
expansions/script/c72412160.lua
View file @
9f405f00
...
...
@@ -54,9 +54,6 @@ function c72412160.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
end
end
function
c72412160
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412170
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412160
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412160
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -67,19 +64,21 @@ function c72412160.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412160
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412160
.
thfilter2
(
c
)
return
c72412160
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412160
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412170
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412160
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412160
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412160
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412160
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412160
)
==
0
end
function
c72412160
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412160
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412160
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412160
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412170.lua
View file @
9f405f00
...
...
@@ -66,9 +66,6 @@ function c72412170.lvop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c72412170
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412180
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412170
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412170
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -79,19 +76,21 @@ function c72412170.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412170
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412170
.
thfilter2
(
c
)
return
c72412170
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412170
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412180
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412170
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412170
.
thfilter2
),
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412170
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412170
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412170
)
==
0
end
function
c72412170
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412170
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412170
.
thfilter2
),
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412170
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412180.lua
View file @
9f405f00
...
...
@@ -38,10 +38,6 @@ function c72412180.spop(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c72412180
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412190
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412180
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412180
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -52,19 +48,21 @@ function c72412180.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412180
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412180
.
thfilter2
(
c
)
return
c72412180
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412180
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412190
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412180
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412180
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412180
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412180
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412180
)
==
0
end
function
c72412180
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412180
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412180
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412180
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412190.lua
View file @
9f405f00
...
...
@@ -45,9 +45,6 @@ function c72412190.negop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c72412190
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412200
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412190
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412190
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -58,19 +55,21 @@ function c72412190.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412190
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412190
.
thfilter2
(
c
)
return
c72412190
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412190
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412200
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412190
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412190
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412190
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412190
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412190
)
==
0
end
function
c72412190
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412190
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412190
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412190
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412200.lua
View file @
9f405f00
...
...
@@ -46,9 +46,6 @@ function c72412200.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c72412200
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412210
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412200
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412200
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -59,19 +56,21 @@ function c72412200.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412200
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412200
.
thfilter2
(
c
)
return
c72412200
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412200
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412210
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412200
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412200
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412200
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412200
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412200
)
==
0
end
function
c72412200
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412200
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412200
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412200
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412210.lua
View file @
9f405f00
...
...
@@ -48,10 +48,6 @@ function c72412210.drop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c72412210
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412220
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412210
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412210
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -62,19 +58,21 @@ function c72412210.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412210
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412210
.
thfilter2
(
c
)
return
c72412210
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412210
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412220
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412210
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412210
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412210
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412210
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412210
)
==
0
end
function
c72412210
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412210
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412210
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412210
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412220.lua
View file @
9f405f00
...
...
@@ -42,9 +42,6 @@ function c72412220.deop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c72412220
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412230
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412220
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412220
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -55,19 +52,21 @@ function c72412220.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412220
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412220
.
thfilter2
(
c
)
return
c72412220
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412220
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412230
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412220
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412220
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412220
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412220
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412220
)
==
0
end
function
c72412220
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412220
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412220
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412220
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412230.lua
View file @
9f405f00
...
...
@@ -37,9 +37,6 @@ function c72412230.reop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
-
tp
,
1200
,
REASON_EFFECT
)
end
end
function
c72412230
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412240
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412230
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412230
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -50,19 +47,21 @@ function c72412230.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412230
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412230
.
thfilter2
(
c
)
return
c72412230
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412230
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412240
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412230
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412230
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412230
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412230
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412230
)
==
0
end
function
c72412230
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412230
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412230
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412230
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412240.lua
View file @
9f405f00
...
...
@@ -38,15 +38,12 @@ function c72412240.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsSetCard
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
(),
0x9728
)
if
g
~=
0
then
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsSetCard
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
(),
0x9728
)
if
g
~=
0
then
Group
.
AddCard
(
g
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
function
c72412240
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412250
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
end
function
c72412240
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412240
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
@@ -58,17 +55,19 @@ function c72412240.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412240
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412240
.
thfilter2
(
c
)
return
c72412240
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412240
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412250
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412240
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412240
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412240
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412240
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412240
)
==
0
end
function
c72412240
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412240
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412240
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412240
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
expansions/script/c72412250.lua
View file @
9f405f00
...
...
@@ -36,9 +36,6 @@ function c72412250.reop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Recover
(
tp
,
2000
,
REASON_EFFECT
)
end
end
function
c72412250
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412260
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412250
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412250
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -49,19 +46,21 @@ function c72412250.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412250
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412250
.
thfilter2
(
c
)
return
c72412250
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412250
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412260
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412250
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412250
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412250
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412250
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412250
)
==
0
end
function
c72412250
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412250
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412250
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412250
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412260.lua
View file @
9f405f00
--星宫守护者·双鱼
function
c72412260
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
72412
15
0
)
aux
.
AddCodeList
(
c
,
72412
26
0
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
72412260
,
0
))
...
...
@@ -45,10 +45,6 @@ function c72412260.drop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c72412260
.
thfilter1
(
c
)
return
c
:
IsCode
(
72412150
)
or
(
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetOwner
(),
72412340
)
and
c
:
IsSetCard
(
0x9728
))
end
function
c72412260
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
72412260
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -59,19 +55,21 @@ function c72412260.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c72412260
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c72412260
.
thfilter2
(
c
)
return
c72412260
.
thfilter1
(
c
)
and
c
:
IsAbleToHand
()
function
c72412260
.
thfilter
(
c
,
tp
)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9911020
)
and
c
:
IsSetCard
(
0x9728
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
(
c
:
IsCode
(
72412150
)
or
res
)
and
c
:
IsAbleToHand
()
end
function
c72412260
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c72412260
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
72412260
)
==
0
return
Duel
.
IsExistingMatchingCard
(
c72412260
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
72412260
)
==
0
end
function
c72412260
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Effect
.
Reset
(
e
)
Duel
.
Hint
(
HINT_CARD
,
0
,
72412260
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c72412260
.
thfilter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72412260
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
expansions/script/c72412340.lua
View file @
9f405f00
--星宫守护神·阿波萝蒂亚
function
c72412340
.
initial_effect
(
c
)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x9728
),
4
,
2
)
c
:
EnableReviveLimit
()
--change effect type
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
7241234
0
)
e1
:
SetCode
(
991102
0
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetCondition
(
c72412340
.
condition
)
c
:
RegisterEffect
(
e1
)
--negate
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -25,7 +26,6 @@ function c72412340.initial_effect(c)
e3
:
SetOperation
(
c72412340
.
disop
)
c
:
RegisterEffect
(
e3
)
end
function
c72412340
.
desfilter
(
c
)
return
c
:
IsSetCard
(
0x9728
)
and
c
:
IsAbleToGrave
()
end
...
...
@@ -55,4 +55,6 @@ function c72412340.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c72412340
.
condition
(
e
)
return
true
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