Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
6169ac18
Commit
6169ac18
authored
Nov 07, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7c3b7fb2
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
563 additions
and
573 deletions
+563
-573
script/c35884610.lua
script/c35884610.lua
+98
-98
script/c36006208.lua
script/c36006208.lua
+59
-60
script/c47728740.lua
script/c47728740.lua
+64
-64
script/c48940337.lua
script/c48940337.lua
+16
-16
script/c601193.lua
script/c601193.lua
+49
-50
script/c72491806.lua
script/c72491806.lua
+50
-56
script/c73213494.lua
script/c73213494.lua
+54
-54
script/c734741.lua
script/c734741.lua
+39
-39
script/c74335036.lua
script/c74335036.lua
+84
-84
script/c9485511.lua
script/c9485511.lua
+50
-52
No files found.
script/c35884610.lua
View file @
6169ac18
...
...
@@ -14,7 +14,7 @@ function c35884610.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
c35884610
.
equip
limit
)
e2
:
SetValue
(
c35884610
.
eq
limit
)
c
:
RegisterEffect
(
e2
)
--Atk Def up
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -65,7 +65,7 @@ function c35884610.initial_effect(c)
e8
:
SetOperation
(
c35884610
.
thop
)
c
:
RegisterEffect
(
e8
)
end
function
c35884610
.
eq
uip
limit
(
e
,
c
)
function
c35884610
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0xb2
)
end
function
c35884610
.
filter
(
c
)
...
...
@@ -102,13 +102,13 @@ function c35884610.rmcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c35884610
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetEquipTarget
():
IsAbleToRemove
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
0
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
e
:
GetHandler
():
GetEquipTarget
()
,
1
,
0
,
0
)
end
function
c35884610
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
():
GetEquipTarget
()
if
c
then
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
local
e
c
=
e
:
GetHandler
():
GetEquipTarget
()
if
ec
then
Duel
.
Remove
(
e
c
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c35884610
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -117,7 +117,7 @@ function c35884610.thcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c35884610
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c35884610
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c36006208.lua
View file @
6169ac18
...
...
@@ -13,10 +13,9 @@ function c36006208.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c36006208
.
filter
(
c
)
return
c
:
IsSetCard
(
0xb1
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToGrave
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb1
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c36006208
.
costfilter
(
c
,
rg
,
dg
)
if
not
rg
:
IsContains
(
c
)
then
return
false
end
local
a
=
0
if
dg
:
IsContains
(
c
)
then
a
=
1
end
if
c
:
GetEquipCount
()
==
0
then
return
rg
:
IsExists
(
c36006208
.
costfilter2
,
1
,
c
,
a
,
dg
)
end
...
...
@@ -47,13 +46,13 @@ function c36006208.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return
true
end
function
c36006208
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
local
rg
=
Duel
.
GetMatchingGroup
(
c36006208
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c36006208
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
return
Duel
.
IsExistingMatchingCard
(
c36006208
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
,
rg
,
dg
)
return
rg
:
IsExists
(
c36006208
.
costfilter
,
2
,
nil
,
rg
,
dg
)
else
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
...
...
@@ -63,7 +62,7 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
rg
=
Duel
.
GetMatchingGroup
(
c36006208
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c36006208
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c36006208
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
2
,
nil
,
rg
,
dg
)
local
sg
=
rg
:
FilterSelect
(
tp
,
c36006208
.
costfilter
,
2
,
2
,
nil
,
rg
,
dg
)
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
...
...
script/c47728740.lua
View file @
6169ac18
...
...
@@ -24,7 +24,7 @@ function c47728740.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
47728740
,
1
))
e3
:
SetCategory
(
CATEGORY_DISABLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCountLimit
(
1
,
47728740
)
e3
:
SetCondition
(
c47728740
.
discon
)
...
...
script/c48940337.lua
View file @
6169ac18
script/c601193.lua
View file @
6169ac18
--Virgil, Rockstar of the Burning Abyss
function
c601193
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
601193
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
0
,
601193
)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
601193
,
0
))
...
...
@@ -12,7 +12,7 @@ function c601193.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
c601193
.
tdcos
)
e1
:
SetCost
(
c601193
.
tdcost
)
e1
:
SetTarget
(
c601193
.
tdtg
)
e1
:
SetOperation
(
c601193
.
tdop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -32,7 +32,7 @@ end
function
c601193
.
filter
(
c
)
return
c
:
IsSetCard
(
0xb1
)
and
c
:
IsDiscardable
()
end
function
c601193
.
tdcos
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c601193
.
tdcos
t
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c601193
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
c601193
.
filter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
...
...
@@ -47,12 +47,11 @@ function c601193.tdop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
ShuffleDeck
(
tc
:
GetControler
())
end
end
function
c601193
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
end
function
c601193
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
script/c72491806.lua
View file @
6169ac18
...
...
@@ -15,6 +15,7 @@ function c72491806.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
72491806
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
72491807
)
...
...
@@ -35,37 +36,30 @@ function c72491806.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72491806
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
function
c72491806
.
thfilter
(
c
,
e
)
return
c
:
IsSetCard
(
0xb2
)
and
c
:
IsAbleToHand
()
and
c
:
IsCanBeEffectTarget
(
e
)
function
c72491806
.
thfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb2
)
and
c
:
IsAbleToHand
()
and
Duel
.
IsExistingMatchingCard
(
c72491806
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
function
c72491806
.
thfilter2
(
c
,
code
)
return
not
c
:
IsCode
(
code
)
end
function
c72491806
.
spfilter2
(
c
,
e
,
tp
,
g
)
return
c
:
IsSetCard
(
0xb2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
g
:
IsExists
(
c72491806
.
thfilter2
,
1
,
e
:
GetHandler
(),
c
:
GetCode
())
function
c72491806
.
spfilter2
(
c
,
e
,
tp
,
code
)
return
c
:
IsSetCard
(
0xb2
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c72491806
.
tstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
c72491806
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
e
)
if
chkc
then
return
chkc
:
IsFaceup
()
and
chkc
:
IsAbleToHand
()
end
if
chk
==
0
then
return
g
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
c72491806
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
g
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c72491806
.
thfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c72491806
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
tg
=
Duel
.
SelectTarget
(
tp
,
c72491806
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
tg
,
tg
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c72491806
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c72491806
.
tsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
c72491806
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
og
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c72491806
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
og
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c72491806
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
()
)
if
sg
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
script/c73213494.lua
View file @
6169ac18
...
...
@@ -24,7 +24,7 @@ function c73213494.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
73213494
,
1
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCountLimit
(
1
,
73213494
)
e3
:
SetCondition
(
c73213494
.
thcon
)
...
...
@@ -70,7 +70,7 @@ function c73213494.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c73213494
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFacedown
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFacedown
()
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
script/c734741.lua
View file @
6169ac18
script/c74335036.lua
View file @
6169ac18
...
...
@@ -10,9 +10,9 @@ function c74335036.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--to deck
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
74335036
,
0
))
e2
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetDescription
(
aux
.
Stringid
(
74335036
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCost
(
c74335036
.
tdcost
)
...
...
@@ -79,7 +79,7 @@ function c74335036.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c74335036
.
tdfilter
(
c
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAbleToDeck
()
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAbleToExtra
()
end
function
c74335036
.
tdcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
@@ -90,7 +90,7 @@ function c74335036.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74335036
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74335036
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c74335036
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c9485511.lua
View file @
6169ac18
...
...
@@ -10,7 +10,7 @@ function c9485511.initial_effect(c)
e1
:
SetCondition
(
c9485511
.
spcon
)
e1
:
SetOperation
(
c9485511
.
spop
)
c
:
RegisterEffect
(
e1
)
--
--indes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
9485511
,
0
))
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -18,9 +18,9 @@ function c9485511.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCondition
(
c9485511
.
con
)
e2
:
SetTarget
(
c9485511
.
tg
)
e2
:
SetOperation
(
c9485511
.
op
)
e2
:
SetCondition
(
c9485511
.
ind
con
)
e2
:
SetTarget
(
c9485511
.
ind
tg
)
e2
:
SetOperation
(
c9485511
.
ind
op
)
c
:
RegisterEffect
(
e2
)
end
function
c9485511
.
spfilter
(
c
)
...
...
@@ -37,22 +37,20 @@ function c9485511.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
function
c9485511
.
filter
(
c
)
return
c
:
IsSetCard
(
0xb2
)
and
c
:
IsFaceup
(
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb2
)
end
function
c9485511
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
function
c9485511
.
indcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
end
function
c9485511
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsOnField
(
)
and
c9485511
.
filter
(
chkc
)
end
function
c9485511
.
ind
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c9485511
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c9485511
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c9485511
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c9485511
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9485511
.
ind
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
(
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
...
...
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