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
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
REIKAI
ygopro
Commits
b39228cc
Commit
b39228cc
authored
Nov 03, 2013
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fc5dd11a
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
62 additions
and
32 deletions
+62
-32
script/c13030280.lua
script/c13030280.lua
+4
-1
script/c14089428.lua
script/c14089428.lua
+1
-0
script/c15341821.lua
script/c15341821.lua
+1
-1
script/c17418744.lua
script/c17418744.lua
+2
-0
script/c18378582.lua
script/c18378582.lua
+1
-1
script/c20127343.lua
script/c20127343.lua
+1
-1
script/c21044178.lua
script/c21044178.lua
+1
-1
script/c22900598.lua
script/c22900598.lua
+4
-3
script/c24874630.lua
script/c24874630.lua
+6
-0
script/c29843091.lua
script/c29843091.lua
+1
-0
script/c30069398.lua
script/c30069398.lua
+1
-0
script/c38049541.lua
script/c38049541.lua
+1
-1
script/c40703222.lua
script/c40703222.lua
+1
-0
script/c40908371.lua
script/c40908371.lua
+2
-2
script/c40921744.lua
script/c40921744.lua
+1
-1
script/c42956963.lua
script/c42956963.lua
+1
-0
script/c44330098.lua
script/c44330098.lua
+2
-0
script/c46173679.lua
script/c46173679.lua
+2
-1
script/c57238939.lua
script/c57238939.lua
+1
-1
script/c58775978.lua
script/c58775978.lua
+2
-0
script/c6133894.lua
script/c6133894.lua
+1
-1
script/c66661678.lua
script/c66661678.lua
+1
-0
script/c72302403.lua
script/c72302403.lua
+14
-16
script/c82301904.lua
script/c82301904.lua
+1
-0
script/c82324105.lua
script/c82324105.lua
+1
-0
script/c82994509.lua
script/c82994509.lua
+1
-0
script/c85771019.lua
script/c85771019.lua
+2
-0
script/c86801871.lua
script/c86801871.lua
+1
-0
script/c98643358.lua
script/c98643358.lua
+4
-1
No files found.
script/c13030280.lua
View file @
b39228cc
...
@@ -28,7 +28,10 @@ function c13030280.valcon(e,re,r,rp)
...
@@ -28,7 +28,10 @@ function c13030280.valcon(e,re,r,rp)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
end
end
function
c13030280
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c13030280
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsRelateToBattle
()
and
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
77631175
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
return
c
:
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
77631175
)
and
c
:
IsRelateToBattle
()
and
bc
:
IsLocation
(
LOCATION_GRAVE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
end
end
function
c13030280
.
damcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c13030280
.
damcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
script/c14089428.lua
View file @
b39228cc
...
@@ -24,5 +24,6 @@ function c14089428.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,5 +24,6 @@ function c14089428.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
)
token
:
RegisterEffect
(
e1
)
end
end
script/c15341821.lua
View file @
b39228cc
...
@@ -29,7 +29,7 @@ function c15341821.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,7 +29,7 @@ function c15341821.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_
EVENT
+
0x1fe0000
+
RESET_
PHASE
+
RESET_END
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
...
...
script/c17418744.lua
View file @
b39228cc
...
@@ -77,12 +77,14 @@ function c17418744.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,12 +77,14 @@ function c17418744.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e2
,
true
)
token
:
RegisterEffect
(
e2
,
true
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
script/c18378582.lua
View file @
b39228cc
...
@@ -11,7 +11,7 @@ function c18378582.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c18378582.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_
FLAG_
CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c18378582
.
spcon
)
e2
:
SetCondition
(
c18378582
.
spcon
)
e2
:
SetOperation
(
c18378582
.
spop
)
e2
:
SetOperation
(
c18378582
.
spop
)
...
...
script/c20127343.lua
View file @
b39228cc
...
@@ -26,7 +26,7 @@ function c20127343.cosop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,7 +26,7 @@ function c20127343.cosop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetProperty
(
EFFECT_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_
FLAG_
CANNOT_DISABLE
)
e1
:
SetValue
(
e
:
GetLabel
())
e1
:
SetValue
(
e
:
GetLabel
())
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
...
...
script/c21044178.lua
View file @
b39228cc
...
@@ -18,6 +18,7 @@ function c21044178.initial_effect(c)
...
@@ -18,6 +18,7 @@ function c21044178.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
21044178
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
21044178
,
0
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
TIMING_DRAW_PHASE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCost
(
c21044178
.
cost
)
e2
:
SetCost
(
c21044178
.
cost
)
...
@@ -45,4 +46,3 @@ end
...
@@ -45,4 +46,3 @@ end
function
c21044178
.
aclimit
(
e
,
re
,
tp
)
function
c21044178
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetActivateLocation
()
==
LOCATION_GRAVE
return
re
:
GetActivateLocation
()
==
LOCATION_GRAVE
end
end
script/c22900598.lua
View file @
b39228cc
...
@@ -31,10 +31,10 @@ end
...
@@ -31,10 +31,10 @@ end
function
c22900598
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22900598
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c22900598
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c22900598
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
if
tc
then
if
tc
then
if
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
~=
nil
local
fc
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
and
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
:
IsStatus
(
STATUS_ACTIVATED
)
then
if
fc
and
fc
:
IsStatus
(
STATUS_ACTIVATED
)
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
Destroy
(
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
,
REASON_RULE
)
Duel
.
Destroy
(
fc
,
REASON_RULE
)
else
else
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
...
@@ -42,6 +42,7 @@ function c22900598.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,6 +42,7 @@ function c22900598.activate(e,tp,eg,ep,ev,re,r,rp)
local
tep
=
tc
:
GetControler
()
local
tep
=
tc
:
GetControler
()
local
cost
=
te
:
GetCost
()
local
cost
=
te
:
GetCost
()
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
tc
:
SetStatus
(
STATUS_ACTIVATED
,
true
)
Duel
.
RaiseEvent
(
tc
,
EVENT_CHAIN_SOLVED
,
tc
:
GetActivateEffect
(),
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
Duel
.
RaiseEvent
(
tc
,
EVENT_CHAIN_SOLVED
,
tc
:
GetActivateEffect
(),
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
local
sg
=
Duel
.
GetMatchingGroup
(
c22900598
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
c22900598
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
22900598
,
0
))
then
if
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
22900598
,
0
))
then
...
...
script/c24874630.lua
View file @
b39228cc
...
@@ -23,18 +23,24 @@ function c24874630.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,18 +23,24 @@ function c24874630.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_REFLECT_BATTLE_DAMAGE
)
e2
:
SetCode
(
EFFECT_REFLECT_BATTLE_DAMAGE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e2
,
true
)
token
:
RegisterEffect
(
e2
,
true
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetOperation
(
c24874630
.
rtcost
)
e3
:
SetOperation
(
c24874630
.
rtcost
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e3
,
true
)
token
:
RegisterEffect
(
e3
,
true
)
end
end
function
c24874630
.
rtcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24874630
.
rtcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c29843091.lua
View file @
b39228cc
...
@@ -34,6 +34,7 @@ function c29843091.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,6 +34,7 @@ function c29843091.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EVENT_DESTROY
)
e2
:
SetCode
(
EVENT_DESTROY
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetOperation
(
c29843091
.
damop
)
e2
:
SetOperation
(
c29843091
.
damop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e2
,
true
)
token
:
RegisterEffect
(
e2
,
true
)
end
end
end
end
...
...
script/c30069398.lua
View file @
b39228cc
...
@@ -24,6 +24,7 @@ function c30069398.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,6 +24,7 @@ function c30069398.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_DESTROY
)
e1
:
SetCode
(
EVENT_DESTROY
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetOperation
(
c30069398
.
damop
)
e1
:
SetOperation
(
c30069398
.
damop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
script/c38049541.lua
View file @
b39228cc
...
@@ -34,7 +34,7 @@ function c38049541.cosop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,7 +34,7 @@ function c38049541.cosop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetProperty
(
EFFECT_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_
FLAG_
CANNOT_DISABLE
)
e1
:
SetValue
(
e
:
GetLabel
())
e1
:
SetValue
(
e
:
GetLabel
())
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
...
...
script/c40703222.lua
View file @
b39228cc
...
@@ -36,6 +36,7 @@ function c40703222.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,6 +36,7 @@ function c40703222.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
script/c40908371.lua
View file @
b39228cc
...
@@ -35,14 +35,14 @@ function c40908371.effop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,14 +35,14 @@ function c40908371.effop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetProperty
(
EFFECT_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_
FLAG_
CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
2
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_
FLAG_
CANNOT_DISABLE
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
2
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
2
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
...
...
script/c40921744.lua
View file @
b39228cc
...
@@ -3,7 +3,7 @@ function c40921744.initial_effect(c)
...
@@ -3,7 +3,7 @@ function c40921744.initial_effect(c)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
40921744
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
40921744
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_
FLAG_
CANNOT_DISABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SUMMON_PROC
)
e1
:
SetCode
(
EFFECT_SUMMON_PROC
)
e1
:
SetCondition
(
c40921744
.
sumcon
)
e1
:
SetCondition
(
c40921744
.
sumcon
)
...
...
script/c42956963.lua
View file @
b39228cc
...
@@ -33,6 +33,7 @@ function c42956963.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,6 +33,7 @@ function c42956963.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_DESTROY
)
e1
:
SetCode
(
EVENT_DESTROY
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetOperation
(
c42956963
.
damop
)
e1
:
SetOperation
(
c42956963
.
damop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
end
end
...
...
script/c44330098.lua
View file @
b39228cc
...
@@ -74,11 +74,13 @@ function c44330098.sumop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,11 +74,13 @@ function c44330098.sumop2(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
val
)
e1
:
SetValue
(
val
)
e1
:
SetReset
(
RESET_EVENT
+
0xfe0000
)
token
:
RegisterEffect
(
e1
)
token
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
e2
:
SetValue
(
val
)
e2
:
SetValue
(
val
)
e2
:
SetReset
(
RESET_EVENT
+
0xfe0000
)
token
:
RegisterEffect
(
e2
)
token
:
RegisterEffect
(
e2
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
script/c46173679.lua
View file @
b39228cc
...
@@ -45,7 +45,7 @@ function c46173679.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,7 +45,7 @@ function c46173679.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
end
end
function
c46173679
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46173679
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
46173680
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
46173680
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
then
for
i
=
1
,
2
do
for
i
=
1
,
2
do
local
token
=
Duel
.
CreateToken
(
tp
,
46173679
+
i
)
local
token
=
Duel
.
CreateToken
(
tp
,
46173679
+
i
)
...
@@ -55,6 +55,7 @@ function c46173679.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,6 +55,7 @@ function c46173679.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
c46173679
.
recon
)
e1
:
SetValue
(
c46173679
.
recon
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
script/c57238939.lua
View file @
b39228cc
...
@@ -26,7 +26,7 @@ function c57238939.cosop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,7 +26,7 @@ function c57238939.cosop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetProperty
(
EFFECT_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_
FLAG_
CANNOT_DISABLE
)
e1
:
SetValue
(
68505803
)
e1
:
SetValue
(
68505803
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
...
...
script/c58775978.lua
View file @
b39228cc
...
@@ -18,6 +18,8 @@ function c58775978.initial_effect(c)
...
@@ -18,6 +18,8 @@ function c58775978.initial_effect(c)
--remain field
--remain field
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EFFECT_REMAIN_FIELD
)
e3
:
SetCode
(
EFFECT_REMAIN_FIELD
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
...
script/c6133894.lua
View file @
b39228cc
...
@@ -11,7 +11,7 @@ function c6133894.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c6133894.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_
FLAG_
CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c6133894
.
spcon
)
e2
:
SetCondition
(
c6133894
.
spcon
)
e2
:
SetOperation
(
c6133894
.
spop
)
e2
:
SetOperation
(
c6133894
.
spop
)
...
...
script/c66661678.lua
View file @
b39228cc
...
@@ -29,5 +29,6 @@ function c66661678.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,5 +29,6 @@ function c66661678.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
script/c72302403.lua
View file @
b39228cc
...
@@ -8,6 +8,20 @@ function c72302403.initial_effect(c)
...
@@ -8,6 +8,20 @@ function c72302403.initial_effect(c)
e1
:
SetTarget
(
c72302403
.
target
)
e1
:
SetTarget
(
c72302403
.
target
)
e1
:
SetOperation
(
c72302403
.
activate
)
e1
:
SetOperation
(
c72302403
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
c
:
RegisterEffect
(
e2
)
--remain field
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EFFECT_REMAIN_FIELD
)
c
:
RegisterEffect
(
e3
)
end
end
function
c72302403
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72302403
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -33,22 +47,6 @@ function c72302403.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,22 +47,6 @@ function c72302403.activate(e,tp,eg,ep,ev,re,r,rp)
if
sg
:
GetCount
()
>
0
then
if
sg
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
sg
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_DEFENCE
,
POS_FACEUP_DEFENCE
)
Duel
.
ChangePosition
(
sg
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_DEFENCE
,
POS_FACEUP_DEFENCE
)
end
end
local
c
=
e
:
GetHandler
()
c
:
CancelToGrave
()
--cannot attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
--remain field
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_REMAIN_FIELD
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e3
)
end
end
function
c72302403
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72302403
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
return
tp
~=
Duel
.
GetTurnPlayer
()
...
...
script/c82301904.lua
View file @
b39228cc
...
@@ -55,5 +55,6 @@ function c82301904.sgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,5 +55,6 @@ function c82301904.sgop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
local
ct
=
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
local
ct
=
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
ct
*
300
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
ct
*
300
,
REASON_EFFECT
)
end
end
script/c82324105.lua
View file @
b39228cc
...
@@ -34,6 +34,7 @@ function c82324105.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,6 +34,7 @@ function c82324105.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
script/c82994509.lua
View file @
b39228cc
...
@@ -29,6 +29,7 @@ function c82994509.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,6 +29,7 @@ function c82994509.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_DESTROY
)
e1
:
SetCode
(
EVENT_DESTROY
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetOperation
(
c82994509
.
handes
)
e1
:
SetOperation
(
c82994509
.
handes
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
script/c85771019.lua
View file @
b39228cc
...
@@ -62,6 +62,7 @@ function c85771019.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,6 +62,7 @@ function c85771019.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
)
token
:
RegisterEffect
(
e1
)
end
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
@@ -73,6 +74,7 @@ function c85771019.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,6 +74,7 @@ function c85771019.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
)
token
:
RegisterEffect
(
e1
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
script/c86801871.lua
View file @
b39228cc
...
@@ -24,6 +24,7 @@ function c86801871.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,6 +24,7 @@ function c86801871.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_DESTROY
)
e1
:
SetCode
(
EVENT_DESTROY
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetOperation
(
c86801871
.
damop
)
e1
:
SetOperation
(
c86801871
.
damop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
script/c98643358.lua
View file @
b39228cc
...
@@ -19,11 +19,14 @@ function c98643358.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,11 +19,14 @@ function c98643358.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
g
:
GetCount
()
*
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
g
:
GetCount
()
*
500
)
end
end
function
c98643358
.
ctfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c98643358
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98643358
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c98643358
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c98643358
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
ct
=
Duel
.
GetOperatedGroup
():
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
local
ct
=
Duel
.
GetOperatedGroup
():
FilterCount
(
c98643358
.
ctfilter
,
nil
)
Duel
.
Damage
(
1
-
tp
,
ct
*
500
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
ct
*
500
,
REASON_EFFECT
)
end
end
end
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