Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
Commits
3091cdbf
Commit
3091cdbf
authored
Oct 12, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7c5668a9
Changes
35
Show whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
108 additions
and
134 deletions
+108
-134
c12632096.lua
c12632096.lua
+4
-3
c14577226.lua
c14577226.lua
+1
-1
c17540705.lua
c17540705.lua
+3
-1
c25415052.lua
c25415052.lua
+1
-1
c25793414.lua
c25793414.lua
+1
-1
c276357.lua
c276357.lua
+13
-15
c30426226.lua
c30426226.lua
+5
-18
c30539496.lua
c30539496.lua
+8
-10
c31548814.lua
c31548814.lua
+0
-1
c31755044.lua
c31755044.lua
+2
-2
c3422200.lua
c3422200.lua
+5
-5
c38572779.lua
c38572779.lua
+2
-2
c42600274.lua
c42600274.lua
+2
-1
c43722862.lua
c43722862.lua
+3
-3
c44944304.lua
c44944304.lua
+1
-2
c45667991.lua
c45667991.lua
+1
-1
c45948430.lua
c45948430.lua
+18
-29
c47482043.lua
c47482043.lua
+1
-1
c47882565.lua
c47882565.lua
+0
-1
c50065971.lua
c50065971.lua
+1
-0
c52022648.lua
c52022648.lua
+1
-1
c52900000.lua
c52900000.lua
+1
-1
c5489987.lua
c5489987.lua
+5
-3
c65193366.lua
c65193366.lua
+1
-1
c70939418.lua
c70939418.lua
+3
-3
c73271204.lua
c73271204.lua
+1
-1
c73881652.lua
c73881652.lua
+5
-6
c74003290.lua
c74003290.lua
+1
-2
c74393852.lua
c74393852.lua
+1
-2
c78942513.lua
c78942513.lua
+4
-4
c81055000.lua
c81055000.lua
+1
-1
c86238081.lua
c86238081.lua
+4
-4
c88305705.lua
c88305705.lua
+1
-1
c91588074.lua
c91588074.lua
+1
-1
c99427357.lua
c99427357.lua
+6
-5
No files found.
c12632096.lua
View file @
3091cdbf
...
...
@@ -20,11 +20,11 @@ function c12632096.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0xe5
)
end
function
c12632096
.
ctfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
Is
ControlerCanBeChanged
()
return
c
:
IsFaceup
()
and
c
:
Is
AbleToChangeControler
()
end
function
c12632096
.
ctcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
rt
=
math.min
(
Duel
.
GetMatchingGroupCount
(
c12632096
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
),
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
),
c
:
GetOverlayCount
(),
3
)
local
rt
=
math.min
(
Duel
.
GetMatchingGroupCount
(
c12632096
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
),
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_CONTROL
),
c
:
GetOverlayCount
(),
3
)
if
chk
==
0
then
return
rt
>
0
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
c
:
RemoveOverlayCard
(
tp
,
1
,
rt
,
REASON_COST
)
local
ct
=
Duel
.
GetOperatedGroup
():
GetCount
()
...
...
@@ -44,7 +44,7 @@ function c12632096.ctop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetLabel
(
c
:
GetFieldID
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
ct
=
math.min
(
e
:
GetLabel
(),
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
))
local
ct
=
math.min
(
e
:
GetLabel
(),
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_CONTROL
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12632096
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
ct
,
ct
,
nil
)
Duel
.
GetControl
(
g
,
tp
,
PHASE_END
,
1
)
...
...
@@ -60,6 +60,7 @@ function c12632096.ctop(e,tp,eg,ep,ev,re,r,rp)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e3
:
SetValue
(
RESET_TURN_SET
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
c14577226.lua
View file @
3091cdbf
...
...
@@ -29,7 +29,7 @@ function c14577226.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c14577226
.
damfilter
(
c
)
return
c
:
IsSetCard
(
0xf0
)
and
c
:
Get
Attack
()
>
0
return
c
:
IsSetCard
(
0xf0
)
and
c
:
Get
Level
()
>
0
end
function
c14577226
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c14577226
.
damfilter
(
chkc
)
end
...
...
c17540705.lua
View file @
3091cdbf
...
...
@@ -13,6 +13,7 @@ function c17540705.initial_effect(c)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
17540705
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -44,7 +45,7 @@ function c17540705.initial_effect(c)
end
function
c17540705
.
threg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
e
:
GetHandler
():
RegisterFlagEffect
(
17540705
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
17540705
,
RESET_
EVENT
+
0x1fe0000
+
RESET_
PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
c17540705
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
17540705
)
~=
0
...
...
@@ -60,6 +61,7 @@ function c17540705.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c17540705
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
c25415052.lua
View file @
3091cdbf
...
...
@@ -66,7 +66,7 @@ function c25415052.retreg(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
Auxiliary
.
SpiritReturnCondition
)
e1
:
SetCondition
(
aux
.
SpiritReturnCondition
)
e1
:
SetTarget
(
c25415052
.
rettg
)
e1
:
SetOperation
(
c25415052
.
retop
)
c
:
RegisterEffect
(
e1
)
...
...
c25793414.lua
View file @
3091cdbf
...
...
@@ -73,7 +73,7 @@ function c25793414.rstop(e,tp,eg,ep,ev,re,r,rp)
end
function
c25793414
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
rp
~=
tp
return
c
:
IsReason
(
REASON_DESTROY
)
and
rp
==
1
-
tp
end
function
c25793414
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsCode
(
14577226
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c276357.lua
View file @
3091cdbf
...
...
@@ -31,26 +31,24 @@ function c276357.initial_effect(c)
e3
:
SetOperation
(
c276357
.
desop
)
c
:
RegisterEffect
(
e3
)
end
function
c276357
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
end
function
c276357
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_SPIRIT
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c276357
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c276357
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
Duel
.
CheckEvent
(
EVENT_ATTACK_ANNOUNCE
)
and
tp
~=
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFlagEffect
(
tp
,
276357
)
==
0
and
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
Duel
.
RegisterFlagEffect
(
tp
,
276357
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_COST
)
local
res
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
=
Duel
.
CheckEvent
(
EVENT_ATTACK_ANNOUNCE
,
true
)
if
res
and
c276357
.
condition
(
e
,
tp
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
)
and
c276357
.
cost
(
e
,
tp
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
,
0
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
c276357
.
cost
(
e
,
tp
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
,
1
)
e
:
SetOperation
(
c276357
.
activate
)
else
e
:
SetOperation
(
nil
)
end
end
function
c276357
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
end
function
c276357
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_SPIRIT
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c276357
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c276357
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
276357
)
==
0
end
...
...
@@ -73,9 +71,9 @@ function c276357.descon(e,tp,eg,ep,ev,re,r,rp)
end
function
c276357
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c276357
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c30426226.lua
View file @
3091cdbf
...
...
@@ -10,30 +10,17 @@ function c30426226.initial_effect(c)
e1
:
SetOperation
(
c30426226
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c30426226
.
filter
(
c
)
return
not
c
:
IsAbleToChangeControler
()
end
function
c30426226
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToChangeControler
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g1
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
tp
)
local
g2
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
if
chk
==
0
then
return
g1
:
GetCount
()
==
g2
:
GetCount
()
and
g
:
FilterCount
(
c30426226
.
filter
,
nil
)
==
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
==
g2
:
GetCount
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c30426226
.
filter2
(
c
,
e
)
return
not
c
:
IsAbleToChangeControler
()
or
c
:
IsImmuneToEffect
(
e
)
end
function
c30426226
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToChangeControler
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g1
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
tp
)
local
g2
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
if
g1
:
GetCount
()
~=
g2
:
GetCount
()
or
g
:
FilterCount
(
c30426226
.
filter2
,
nil
,
e
)
>
0
then
return
end
local
a
=
g1
:
GetFirst
()
local
b
=
g2
:
GetFirst
()
while
a
and
b
do
Duel
.
SwapControl
(
a
,
b
)
a
=
g1
:
GetNext
()
b
=
g2
:
GetNext
()
end
if
g1
:
GetCount
()
~=
g2
:
GetCount
()
then
return
end
Duel
.
SwapControl
(
g1
,
g2
)
end
c30539496.lua
View file @
3091cdbf
...
...
@@ -71,17 +71,15 @@ function c30539496.spop(e,tp,eg,ep,ev,re,r,rp)
local
rg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
if
rm
and
rg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
30539496
,
2
))
then
Duel
.
ConfirmCards
(
tp
,
rg
)
local
tg
=
Group
.
CreateGroup
()
local
i
=
3
repeat
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
rg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
sg
:
Clone
()
rg
:
Sub
(
rg
:
Filter
(
Card
.
IsCode
,
nil
,
sg
:
GetFirst
():
GetCode
()))
local
i
=
2
while
i
>
0
and
rg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
30539496
,
3
))
do
sg
=
rg
:
Select
(
tp
,
1
,
1
,
nil
)
tg
:
Merge
(
sg
)
rg
:
Sub
(
rg
:
Filter
(
Card
.
IsCode
,
nil
,
sg
:
GetFirst
():
GetCode
()))
local
tc
=
rg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
rg
:
Remove
(
Card
.
IsCode
,
nil
,
tc
:
GetCode
())
tg
:
AddCard
(
tc
)
i
=
i
-
1
end
until
i
<
1
or
rg
:
GetCount
()
==
0
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
30539496
,
3
))
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
...
...
c31548814.lua
View file @
3091cdbf
...
...
@@ -14,7 +14,6 @@ function c31548814.costfilter(c)
return
c
:
IsSetCard
(
0xc5
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsAbleToGraveAsCost
()
end
function
c31548814
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c31548814
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
e
:
GetHandler
())
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c31548814
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31548814
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
...
...
c31755044.lua
View file @
3091cdbf
...
...
@@ -62,7 +62,7 @@ function c31755044.rmcon(e,tp,eg,ep,ev,re,r,rp)
local
bc
=
c
:
GetBattleTarget
()
e
:
SetLabelObject
(
bc
)
return
c
:
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
31755044
)
and
bc
and
bc
:
IsRelateToBattle
()
and
bc
and
bc
:
Is
Status
(
STATUS_OPPO_BATTLE
)
and
bc
:
Is
RelateToBattle
()
end
function
c31755044
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetLabelObject
():
IsAbleToRemove
()
end
...
...
@@ -71,7 +71,7 @@ function c31755044.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c31755044
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetLabelObject
()
if
bc
:
IsRelateToBattle
()
then
if
bc
:
IsRelateToBattle
()
and
bc
:
IsControler
(
1
-
tp
)
then
Duel
.
Remove
(
bc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
c3422200.lua
View file @
3091cdbf
...
...
@@ -3,7 +3,7 @@ function c3422200.initial_effect(c)
--special summon (hand/grave)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
3422200
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
3422200
)
...
...
@@ -19,13 +19,13 @@ function c3422200.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetCountLimit
(
1
,
3422201
)
e2
:
SetCondition
(
c3422200
.
spcon
)
e2
:
SetCondition
(
c3422200
.
spcon
2
)
e2
:
SetTarget
(
c3422200
.
sptg2
)
e2
:
SetOperation
(
c3422200
.
spop2
)
c
:
RegisterEffect
(
e2
)
end
function
c3422200
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xea
)
and
c
:
IsDiscardable
()
return
c
:
IsSetCard
(
0xea
)
and
not
c
:
IsCode
(
3422200
)
and
c
:
IsDiscardable
()
end
function
c3422200
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c3422200
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
...
...
@@ -41,7 +41,7 @@ function c3422200.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
...
...
@@ -50,7 +50,7 @@ function c3422200.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
end
function
c3422200
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3422200
.
spcon
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
c3422200
.
spfilter
(
c
,
e
,
tp
)
...
...
c38572779.lua
View file @
3091cdbf
...
...
@@ -91,7 +91,7 @@ function c38572779.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
rg1
:
AddCard
(
c
)
Duel
.
Remove
(
rg1
,
POS_FACEUP
,
REASON_COST
)
Duel
.
SetTargetParam
(
lv
)
e
:
SetLabel
(
lv
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c38572779
.
sfilter
(
c
,
e
,
tp
,
lv
)
...
...
@@ -99,7 +99,7 @@ function c38572779.sfilter(c,e,tp,lv)
end
function
c38572779
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
lv
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
lv
=
e
:
GetLabel
(
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c38572779
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
lv
)
local
tc
=
g
:
GetFirst
()
...
...
c42600274.lua
View file @
3091cdbf
...
...
@@ -2,7 +2,7 @@
function
c42600274
.
initial_effect
(
c
)
--spsummon from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
...
...
@@ -40,6 +40,7 @@ function c42600274.hspop(e,tp,eg,ep,ev,re,r,rp,c)
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c42600274
.
hspfilter
,
1
,
1
,
nil
,
tp
)
end
Duel
.
Release
(
g
,
REASON_COST
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x4fc0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
42600274
,
0
))
end
function
c42600274
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_RITUAL
)
...
...
c43722862.lua
View file @
3091cdbf
...
...
@@ -31,6 +31,9 @@ end
function
c43722862
.
counterfilter
(
c
)
return
c
:
GetSummonLocation
()
~=
LOCATION_EXTRA
or
(
c
:
IsLevelAbove
(
5
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
))
end
function
c43722862
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
end
function
c43722862
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
43722862
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -45,9 +48,6 @@ end
function
c43722862
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
(
c
:
IsLevelAbove
(
5
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
))
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
c43722862
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
end
function
c43722862
.
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
)
end
...
...
c44944304.lua
View file @
3091cdbf
...
...
@@ -72,7 +72,7 @@ function c44944304.atkop(e,tp,eg,ep,ev,re,r,rp)
end
function
c44944304
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousAttackOnField
()
>
c
:
GetBaseAttack
()
return
c
:
Is
Reason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
c
:
Is
PreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousAttackOnField
()
>
c
:
GetBaseAttack
()
end
function
c44944304
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
@@ -87,7 +87,6 @@ function c44944304.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c44944304
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c45667991.lua
View file @
3091cdbf
...
...
@@ -36,7 +36,7 @@ function c45667991.rctg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c45667991
.
rcfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c45667991
.
rcfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c45667991
.
rcfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c45667991
.
rcfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c45667991
.
rcop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c45948430.lua
View file @
3091cdbf
...
...
@@ -10,58 +10,47 @@ function c45948430.initial_effect(c)
e1
:
SetOperation
(
c45948430
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c45948430
.
filter
(
c
,
e
,
tp
,
mg
)
function
c45948430
.
filter
(
c
,
e
,
tp
)
if
not
c
:
IsSetCard
(
0x10cf
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
local
g
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
if
c
.
mat_filter
then
g
=
g
:
Filter
(
c
.
mat_filter
,
nil
)
end
return
g
:
GetCount
()
>
0
return
Duel
.
IsExistingMatchingCard
(
c45948430
.
matfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
,
tp
,
c
)
end
function
c45948430
.
matfilter1
(
c
,
tp
)
function
c45948430
.
matfilter1
(
c
,
tp
,
rc
)
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
lv
<
8
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
+
ATTRIBUTE_DARK
)
and
c
:
IsAbleToGrave
()
and
Duel
.
IsExistingMatchingCard
(
c45948430
.
matfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
lv
,
c
:
GetAttribute
())
return
lv
>
0
and
lv
<
8
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
+
ATTRIBUTE_DARK
)
and
c
:
IsAbleToGrave
()
and
c
:
IsCanBeRitualMaterial
(
rc
)
and
Duel
.
IsExistingMatchingCard
(
c45948430
.
matfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
lv
,
c
:
GetAttribute
()
,
rc
)
end
function
c45948430
.
matfilter2
(
c
,
lv
,
att
)
function
c45948430
.
matfilter2
(
c
,
lv
,
att
,
rc
)
return
((
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
att
==
ATTRIBUTE_DARK
)
or
(
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
att
==
ATTRIBUTE_LIGHT
))
and
c
:
GetLevel
()
==
8
-
lv
and
c
:
IsAbleToGrave
()
and
c
:
GetLevel
()
==
8
-
lv
and
c
:
IsAbleToGrave
()
and
c
:
IsCanBeRitualMaterial
(
rc
)
end
function
c45948430
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
mg
=
Duel
.
GetMatchingGroup
(
c45948430
.
matfilter1
,
tp
,
LOCATION_HAND
,
0
,
nil
,
tp
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c45948430
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
and
Duel
.
IsExistingMatchingCard
(
c45948430
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
function
c45948430
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
mg
=
Duel
.
GetMatchingGroup
(
c45948430
.
matfilter1
,
tp
,
LOCATION_HAND
,
0
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c45948430
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
local
tc1
=
t
g
:
GetFirst
()
if
tc1
then
if
tc1
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
and
Duel
.
IsChainDisablable
(
0
)
then
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
c45948430
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
rc
=
r
g
:
GetFirst
()
if
rc
then
if
rc
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
and
Duel
.
IsChainDisablable
(
0
)
then
Duel
.
NegateEffect
(
0
)
return
end
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc1
,
tc1
)
if
tc1
.
mat_filter
then
mg
=
mg
:
Filter
(
tc1
.
mat_filter
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
mat
=
Duel
.
SelectMatchingCard
(
tp
,
c45948430
.
matfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
local
tc2
=
mat
:
GetFirst
()
if
not
tc2
then
return
end
local
mat
=
Duel
.
SelectMatchingCard
(
tp
,
c45948430
.
matfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
rc
,
tp
,
rc
)
local
mc
=
mat
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
mat2
=
Duel
.
SelectMatchingCard
(
tp
,
c45948430
.
matfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc2
:
GetLevel
(),
tc2
:
GetAttribute
()
)
local
mat2
=
Duel
.
SelectMatchingCard
(
tp
,
c45948430
.
matfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
mc
:
GetLevel
(),
mc
:
GetAttribute
(),
rc
)
mat
:
Merge
(
mat2
)
tc1
:
SetMaterial
(
mat
)
rc
:
SetMaterial
(
mat
)
Duel
.
SendtoGrave
(
mat
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc1
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc1
:
CompleteProcedure
()
Duel
.
SpecialSummon
(
rc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
rc
:
CompleteProcedure
()
end
end
c47482043.lua
View file @
3091cdbf
...
...
@@ -39,7 +39,7 @@ function c47482043.spcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
end
function
c47482043
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x7
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
CanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c47482043
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c47482043
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
c47882565.lua
View file @
3091cdbf
...
...
@@ -27,7 +27,6 @@ function c47882565.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c47882565
.
filter1
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c47882565
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c47882565
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
c50065971.lua
View file @
3091cdbf
...
...
@@ -29,6 +29,7 @@ function c50065971.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c50065971
.
spcon
)
e4
:
SetTarget
(
c50065971
.
sptg
)
e4
:
SetOperation
(
c50065971
.
spop
)
...
...
c52022648.lua
View file @
3091cdbf
...
...
@@ -26,7 +26,7 @@ function c52022648.tglimit(e,c)
return
c
~=
e
:
GetHandler
()
end
function
c52022648
.
tgval
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
re
:
IsActiveType
(
TYPE_SPELL
)
end
function
c52022648
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsDiscardable
()
...
...
c52900000.lua
View file @
3091cdbf
...
...
@@ -63,7 +63,7 @@ function c52900000.retreg(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
Auxiliary
.
SpiritReturnCondition
)
e1
:
SetCondition
(
aux
.
SpiritReturnCondition
)
e1
:
SetTarget
(
c52900000
.
rettg
)
e1
:
SetOperation
(
c52900000
.
retop
)
c
:
RegisterEffect
(
e1
)
...
...
c5489987.lua
View file @
3091cdbf
...
...
@@ -14,6 +14,7 @@ function c5489987.initial_effect(c)
--atk up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
5489987
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_HAND
)
...
...
@@ -59,10 +60,11 @@ end
function
c5489987
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
phase
=
Duel
.
GetCurrentPhase
()
if
phase
~=
PHASE_DAMAGE
or
Duel
.
IsDamageCalculated
()
then
return
false
end
local
tc
=
Duel
.
GetAttacker
()
if
tc
:
IsControler
(
1
-
tp
)
then
tc
=
Duel
.
GetAttackTarget
()
end
local
tc
=
Duel
.
GetAttackTarget
()
if
not
tc
then
return
false
end
if
tc
:
IsControler
(
1
-
tp
)
then
tc
=
Duel
.
GetAttacker
()
end
e
:
SetLabelObject
(
tc
)
return
tc
and
tc
:
IsSetCard
(
0xe6
)
and
tc
:
IsRelateToBattle
()
and
Duel
.
GetAttackTarget
()
~=
nil
return
tc
:
IsFaceup
()
and
tc
:
IsSetCard
(
0xe6
)
and
tc
:
IsRelateToBattle
()
end
function
c5489987
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
...
...
c65193366.lua
View file @
3091cdbf
...
...
@@ -22,7 +22,7 @@ end
function
c65193366
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c65193366
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
end
function
c65193366
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
...
...
c70939418.lua
View file @
3091cdbf
...
...
@@ -27,6 +27,7 @@ function c70939418.initial_effect(c)
--deckdes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
70939418
,
2
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetCondition
(
c70939418
.
ddcon
)
...
...
@@ -73,7 +74,7 @@ function c70939418.scop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SynchroSummon
(
tp
,
sg
:
GetFirst
(),
c
)
Duel
.
SynchroSummon
(
tp
,
sg
:
GetFirst
(),
c
,
mg
)
end
end
function
c70939418
.
ddcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -84,8 +85,7 @@ function c70939418.ddtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
end
function
c70939418
.
ddop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
end
Duel
.
DiscardDeck
(
tp
,
1
,
REASON_EFFECT
)
if
Duel
.
DiscardDeck
(
tp
,
1
,
REASON_EFFECT
)
==
0
then
return
end
local
tc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
local
c
=
e
:
GetHandler
()
local
sync
=
c
:
GetReasonCard
()
...
...
c73271204.lua
View file @
3091cdbf
...
...
@@ -3,7 +3,7 @@ function c73271204.initial_effect(c)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
73271204
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
c73881652.lua
View file @
3091cdbf
...
...
@@ -39,10 +39,9 @@ function c73881652.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
GetMatchingGroup
(
c73881652
.
matfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c73881652
.
matfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
local
og
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Overlay
(
tc
,
og
)
Duel
.
Overlay
(
tc
,
g
)
end
end
end
...
...
@@ -50,12 +49,12 @@ function c73881652.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
function
c73881652
.
drfilter
(
c
)
return
c
:
IsSetCard
(
0xf1
)
and
c
:
IsAbleToDeck
()
function
c73881652
.
drfilter
(
c
,
e
)
return
c
:
IsSetCard
(
0xf1
)
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
c73881652
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c73881652
.
drfilter
,
tp
,
LOCATION_GRAVE
,
0
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
c73881652
.
drfilter
,
tp
,
LOCATION_GRAVE
,
0
,
e
:
GetHandler
()
,
e
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
4
end
local
sg
=
Group
.
CreateGroup
()
...
...
c74003290.lua
View file @
3091cdbf
...
...
@@ -60,8 +60,7 @@ function c74003290.setcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c74003290
.
cfilter
,
1
,
nil
,
tp
)
end
function
c74003290
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsSSetable
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsSSetable
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c74003290
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c74393852.lua
View file @
3091cdbf
...
...
@@ -57,8 +57,7 @@ function c74393852.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c74393852
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
+
LOCATION_ONFIELD
)
local
sg
=
g
:
Filter
(
Card
.
IsAbleToGrave
,
nil
)
if
chk
==
0
then
return
sg
:
GetCount
()
>
0
end
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
...
...
c78942513.lua
View file @
3091cdbf
...
...
@@ -16,24 +16,24 @@ function c78942513.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c78942513
.
filter
(
c
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsFaceup
()
end
function
c78942513
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsAbleToGrave
()
end
function
c78942513
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c78942513
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c78942513
.
tg
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c78942513
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c78942513
.
tgfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c78942513
.
tg
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c78942513
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c78942513
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78942513
.
tgfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
>
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
>
0
and
g
:
IsExists
(
Card
.
IsLocation
,
1
,
LOCATION_GRAVE
)
then
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c81055000.lua
View file @
3091cdbf
...
...
@@ -25,7 +25,7 @@ function c81055000.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c81055000
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x9f
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x9f
)
and
c
:
IsAbleToHand
()
end
function
c81055000
.
thtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
c81055000
.
thfilter
(
chkc
)
end
...
...
c86238081.lua
View file @
3091cdbf
...
...
@@ -93,13 +93,13 @@ function c86238081.descost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c86238081
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
sg
=
Duel
.
Get
MatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
>
0
end
local
sg
=
Duel
.
Get
FieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
function
c86238081
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
sg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
sg
=
Duel
.
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
local
ct
=
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
if
ct
>
0
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -120,7 +120,7 @@ function c86238081.valcheck(e,c)
end
function
c86238081
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c86238081
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
...
...
c88305705.lua
View file @
3091cdbf
...
...
@@ -85,7 +85,7 @@ function c88305705.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c88305705
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetLabelObject
()
if
bc
:
IsRelateToBattle
()
then
if
bc
:
IsRelateToBattle
()
and
bc
:
IsControler
(
1
-
tp
)
then
Duel
.
Remove
(
bc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
c91588074.lua
View file @
3091cdbf
...
...
@@ -5,7 +5,7 @@ function c91588074.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c91588074
.
spcon
)
e1
:
SetOperation
(
c91588074
.
spop
)
...
...
c99427357.lua
View file @
3091cdbf
...
...
@@ -66,17 +66,18 @@ function c99427357.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c99427357
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsControlerCanBeChanged
()
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingTarget
(
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToChangeControler
()
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_CONTROL
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
0
)
>
1
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToChangeControler
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
ControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
AbleToChangeControler
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c99427357
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
...
...
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