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
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
八宫一月
ygopro-scripts
Commits
92679e23
Commit
92679e23
authored
Apr 24, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (25/45)
parent
f8ae0d5c
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
106 additions
and
135 deletions
+106
-135
c17787975.lua
c17787975.lua
+3
-4
c20747792.lua
c20747792.lua
+1
-1
c20960340.lua
c20960340.lua
+23
-19
c22804410.lua
c22804410.lua
+9
-9
c29311166.lua
c29311166.lua
+1
-1
c54175023.lua
c54175023.lua
+0
-1
c54297661.lua
c54297661.lua
+24
-17
c55410871.lua
c55410871.lua
+3
-2
c56132807.lua
c56132807.lua
+2
-2
c56532353.lua
c56532353.lua
+1
-3
c68299524.lua
c68299524.lua
+20
-26
c80560728.lua
c80560728.lua
+3
-30
c81782376.lua
c81782376.lua
+6
-6
c82627406.lua
c82627406.lua
+1
-1
c93927067.lua
c93927067.lua
+4
-8
c94561645.lua
c94561645.lua
+1
-1
c95697223.lua
c95697223.lua
+4
-4
No files found.
c17787975.lua
View file @
92679e23
...
@@ -34,7 +34,6 @@ function c17787975.initial_effect(c)
...
@@ -34,7 +34,6 @@ function c17787975.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCondition
(
c17787975
.
descon
)
e4
:
SetCondition
(
c17787975
.
descon
)
e4
:
SetOperation
(
c17787975
.
desop
)
e4
:
SetOperation
(
c17787975
.
desop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
@@ -59,14 +58,14 @@ function c17787975.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,14 +58,14 @@ function c17787975.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c17787975
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c17787975
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_STEP
end
end
function
c17787975
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17787975
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetFirstCardTarget
()
local
tc
=
c
:
GetFirstCardTarget
()
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
if
chk
==
0
then
return
tc
and
at
and
Duel
.
GetAttackTarget
()
==
tc
if
chk
==
0
then
return
tc
and
Duel
.
GetAttackTarget
()
==
tc
and
at
:
GetAttack
()
>
tc
:
GetAttack
()
end
and
at
and
at
:
IsControler
(
1
-
tp
)
and
at
:
GetAttack
()
>
tc
:
GetAttack
()
end
local
dam
=
math.abs
(
at
:
GetAttack
()
-
tc
:
GetAttack
())
local
dam
=
math.abs
(
at
:
GetAttack
()
-
tc
:
GetAttack
())
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetTargetParam
(
dam
)
...
...
c20747792.lua
View file @
92679e23
...
@@ -29,7 +29,7 @@ function c20747792.initial_effect(c)
...
@@ -29,7 +29,7 @@ function c20747792.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c20747792
.
thfilter
(
c
)
function
c20747792
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x20a2
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x20a2
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
end
function
c20747792
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20747792
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c20747792
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c20747792
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c20960340.lua
View file @
92679e23
...
@@ -11,14 +11,13 @@ function c20960340.initial_effect(c)
...
@@ -11,14 +11,13 @@ function c20960340.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c20960340
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20960340
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetFirst
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
and
Duel
.
GetAttacker
():
IsAttackAbove
(
Duel
.
GetLP
(
tp
))
end
end
function
c20960340
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20960340
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
at
=
Duel
.
GetAttacker
()
local
atk
=
Duel
.
GetLP
(
tp
)
local
atk
=
Duel
.
GetLP
(
tp
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20960340
,
0
,
0x21
,
atk
,
0
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20960340
,
0
,
0x21
,
atk
,
0
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
and
at
:
IsOnField
()
and
at
:
GetAttack
()
>=
atk
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c20960340
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20960340
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -30,18 +29,23 @@ function c20960340.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,18 +29,23 @@ function c20960340.activate(e,tp,eg,ep,ev,re,r,rp)
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
20960340
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetValue
(
atk
)
e1
:
SetCode
(
EVENT_BATTLED
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetLabel
(
atk
)
c
:
RegisterEffect
(
e1
)
e1
:
SetCondition
(
c20960340
.
damcon
)
--damage
e1
:
SetTarget
(
c20960340
.
damtg
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetOperation
(
c20960340
.
damop
)
e2
:
SetDescription
(
aux
.
Stringid
(
20960340
,
0
))
e1
:
SetReset
(
RESET_EVENT
+
0x17e0000
)
e2
:
SetCategory
(
CATEGORY_DAMAGE
)
c
:
RegisterEffect
(
e1
,
true
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_BATTLED
)
e2
:
SetCondition
(
c20960340
.
damcon
)
e2
:
SetTarget
(
c20960340
.
damtg
)
e2
:
SetOperation
(
c20960340
.
damop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
,
true
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
if
at
and
at
:
IsAttackable
()
and
at
:
IsFaceup
()
and
not
at
:
IsImmuneToEffect
(
e
)
and
not
at
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
then
if
at
and
at
:
IsAttackable
()
and
at
:
IsFaceup
()
and
not
at
:
IsImmuneToEffect
(
e
)
and
not
at
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
then
...
@@ -54,12 +58,12 @@ function c20960340.damcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,12 +58,12 @@ function c20960340.damcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c20960340
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20960340
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
dam
=
e
:
Get
Label
()
local
dam
=
e
:
Get
Handler
():
GetAttack
()
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
end
end
function
c20960340
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20960340
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
e
:
GetHandler
():
GetAttack
()
,
REASON_EFFECT
)
end
end
c22804410.lua
View file @
92679e23
...
@@ -15,7 +15,7 @@ function c22804410.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c22804410.initial_effect(c)
--atk
--atk
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
22804410
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
22804410
,
1
))
e2
:
SetCategory
(
CATEGORY_
DISABL
E
)
e2
:
SetCategory
(
CATEGORY_
ATKCHANG
E
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
@@ -29,7 +29,6 @@ function c22804410.initial_effect(c)
...
@@ -29,7 +29,6 @@ function c22804410.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCondition
(
c22804410
.
descon
)
e4
:
SetCondition
(
c22804410
.
descon
)
e4
:
SetTarget
(
c22804410
.
destg
)
e4
:
SetTarget
(
c22804410
.
destg
)
...
@@ -37,9 +36,8 @@ function c22804410.initial_effect(c)
...
@@ -37,9 +36,8 @@ function c22804410.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c22804410
.
spfilter
(
c
,
tp
)
function
c22804410
.
spfilter
(
c
,
tp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c
:
IsSetCard
(
0xdd
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsSetCard
(
0xdd
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
GetReasonPlayer
()
~=
tp
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c22804410
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22804410
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c22804410
.
spfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c22804410
.
spfilter
,
1
,
nil
,
tp
)
...
@@ -65,15 +63,16 @@ function c22804410.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,15 +63,16 @@ function c22804410.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c22804410
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c22804410
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsRace
(
RACE_DRAGON
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsRace
(
RACE_DRAGON
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsRace
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
RACE_DRAGON
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsRace
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
RACE_DRAGON
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsRace
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
RACE_DRAGON
)
end
end
function
c22804410
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22804410
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
atk
=
tc
:
GetAttack
()
local
atk
=
tc
:
GetAttack
()
if
tc
:
IsRelateToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
if
atk
>
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
...
@@ -83,10 +82,11 @@ function c22804410.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,10 +82,11 @@ function c22804410.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c22804410
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22804410
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c22804410
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22804410
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
...
...
c29311166.lua
View file @
92679e23
...
@@ -20,7 +20,7 @@ function c29311166.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,7 +20,7 @@ function c29311166.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c29311166
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c29311166
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
-
1
and
Duel
.
IsExistingMatchingCard
(
c29311166
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c29311166
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
)
end
end
...
...
c54175023.lua
View file @
92679e23
...
@@ -32,7 +32,6 @@ function c54175023.initial_effect(c)
...
@@ -32,7 +32,6 @@ function c54175023.initial_effect(c)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetCondition
(
c54175023
.
descon
)
e5
:
SetCondition
(
c54175023
.
descon
)
e5
:
SetOperation
(
c54175023
.
desop
)
e5
:
SetOperation
(
c54175023
.
desop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
...
...
c54297661.lua
View file @
92679e23
...
@@ -17,10 +17,8 @@ function c54297661.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -17,10 +17,8 @@ function c54297661.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c54297661
.
filter
(
c
,
tp
)
function
c54297661
.
filter
(
c
,
tp
)
local
atk
=
c
:
GetAttack
()
local
def
=
c
:
GetDefence
()
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
0x21
,
atk
,
def
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
0x21
,
c
:
GetAttack
(),
c
:
GetDefence
()
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
end
end
function
c54297661
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54297661
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
...
@@ -39,29 +37,38 @@ function c54297661.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,29 +37,38 @@ function c54297661.activate(e,tp,eg,ep,ev,re,r,rp)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
0x21
,
atk
,
def
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
0x21
,
atk
,
def
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
then
--damage
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
54297661
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetValue
(
atk
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetLabel
(
atk
)
c
:
RegisterEffect
(
e1
)
e1
:
SetTarget
(
c54297661
.
damtg
)
local
e2
=
e1
:
Clone
()
e1
:
SetOperation
(
c54297661
.
damop
)
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
e1
:
SetReset
(
RESET_EVENT
+
0x17e0000
)
e2
:
SetValue
(
def
)
c
:
RegisterEffect
(
e1
,
true
)
c
:
RegisterEffect
(
e2
)
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
54297661
,
0
))
e3
:
SetCategory
(
CATEGORY_DAMAGE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetTarget
(
c54297661
.
damtg
)
e3
:
SetOperation
(
c54297661
.
damop
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e3
,
true
)
end
end
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
function
c54297661
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54297661
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
dam
=
e
:
Get
Label
()
local
dam
=
e
:
Get
Handler
():
GetAttack
()
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
end
end
function
c54297661
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54297661
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
e
:
GetHandler
():
GetAttack
()
,
REASON_EFFECT
)
end
end
c55410871.lua
View file @
92679e23
...
@@ -19,8 +19,8 @@ function c55410871.initial_effect(c)
...
@@ -19,8 +19,8 @@ function c55410871.initial_effect(c)
--indes
--indes
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
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
c55410871
.
indval
)
e3
:
SetValue
(
c55410871
.
indval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -40,7 +40,8 @@ function c55410871.indval(e,re,tp)
...
@@ -40,7 +40,8 @@ function c55410871.indval(e,re,tp)
return
tp
~=
e
:
GetHandlerPlayer
()
return
tp
~=
e
:
GetHandlerPlayer
()
end
end
function
c55410871
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55410871
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
and
e
:
GetHandler
():
GetBattleTarget
():
IsDefencePos
()
local
c
=
e
:
GetHandler
()
return
ep
~=
tp
and
c
==
Duel
.
GetAttacker
()
and
Duel
.
GetAttackTarget
()
and
Duel
.
GetAttackTarget
():
IsDefencePos
()
end
end
function
c55410871
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55410871
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
ep
,
ev
*
2
)
Duel
.
ChangeBattleDamage
(
ep
,
ev
*
2
)
...
...
c56132807.lua
View file @
92679e23
...
@@ -51,10 +51,10 @@ function c56132807.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,10 +51,10 @@ function c56132807.thcon(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
end
end
function
c56132807
.
thfilter
(
c
)
function
c56132807
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x20a2
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x20a2
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
end
function
c56132807
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c56132807
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c56132807
.
thfilter
(
chkc
)
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c56132807
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c56132807
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c56132807
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
c
):
Filter
(
Card
.
IsCanBeEffectTarget
,
nil
,
e
)
local
g
=
Duel
.
GetMatchingGroup
(
c56132807
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
c
):
Filter
(
Card
.
IsCanBeEffectTarget
,
nil
,
e
)
...
...
c56532353.lua
View file @
92679e23
...
@@ -31,7 +31,7 @@ end
...
@@ -31,7 +31,7 @@ end
function
c56532353
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56532353
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
and
Duel
.
GetAttacker
()
==
c
and
c
:
IsChainAttackable
(
0
,
false
)
and
Duel
.
GetAttacker
()
==
c
and
c
:
IsChainAttackable
(
0
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
end
function
c56532353
.
atcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56532353
.
atcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -41,8 +41,6 @@ function c56532353.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -41,8 +41,6 @@ function c56532353.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c56532353
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56532353
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToBattle
()
then
return
end
Duel
.
ChainAttack
()
Duel
.
ChainAttack
()
end
end
function
c56532353
.
filter
(
c
,
tp
)
function
c56532353
.
filter
(
c
,
tp
)
...
...
c68299524.lua
View file @
92679e23
...
@@ -8,7 +8,6 @@ function c68299524.initial_effect(c)
...
@@ -8,7 +8,6 @@ function c68299524.initial_effect(c)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCost
(
c68299524
.
cost
)
e1
:
SetCost
(
c68299524
.
cost
)
e1
:
SetTarget
(
c68299524
.
target
)
e1
:
SetOperation
(
c68299524
.
operation
)
e1
:
SetOperation
(
c68299524
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--Destroy
--Destroy
...
@@ -27,7 +26,6 @@ function c68299524.initial_effect(c)
...
@@ -27,7 +26,6 @@ function c68299524.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
68299524
,
2
))
e3
:
SetDescription
(
aux
.
Stringid
(
68299524
,
2
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetCondition
(
c68299524
.
atkcon
)
e3
:
SetCondition
(
c68299524
.
atkcon
)
e3
:
SetOperation
(
c68299524
.
atkop
)
e3
:
SetOperation
(
c68299524
.
atkop
)
...
@@ -37,22 +35,20 @@ function c68299524.filter(c)
...
@@ -37,22 +35,20 @@ function c68299524.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsAttackAbove
(
100
)
return
c
:
IsFaceup
()
and
c
:
IsAttackAbove
(
100
)
end
end
function
c68299524
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68299524
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
100
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
100
)
and
Duel
.
IsExistingMatchingCard
(
c68299524
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
c68299524
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
c68299524
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
local
tg
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
local
tg
,
atk
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
local
maxc
=
math.min
(
Duel
.
GetLP
(
tp
),
tg
:
GetFirst
():
GetAttack
()
)
local
maxc
=
math.min
(
Duel
.
GetLP
(
tp
),
atk
)
maxc
=
math.floor
(
maxc
/
100
)
*
100
local
ct
=
math.floor
(
maxc
/
100
)
local
t
=
{}
local
t
=
{}
for
i
=
1
,
maxc
/
100
do
for
i
=
1
,
ct
do
t
[
i
]
=
i
*
100
t
[
i
]
=
i
*
100
end
end
local
cost
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
))
local
cost
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
))
Duel
.
PayLPCost
(
tp
,
cost
)
Duel
.
PayLPCost
(
tp
,
cost
)
e
:
SetLabel
(
cost
)
e
:
SetLabel
(
cost
)
end
end
function
c68299524
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c68299524
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
end
function
c68299524
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68299524
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c68299524
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
c68299524
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
...
@@ -61,7 +57,6 @@ function c68299524.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,7 +57,6 @@ function c68299524.operation(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_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
-
val
)
e1
:
SetValue
(
-
val
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
...
@@ -71,11 +66,12 @@ end
...
@@ -71,11 +66,12 @@ end
function
c68299524
.
desfilter
(
c
,
atk
)
function
c68299524
.
desfilter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
IsDestructable
()
and
c
:
IsAttackBelow
(
atk
)
return
c
:
IsFaceup
()
and
c
:
IsDestructable
()
and
c
:
IsAttackBelow
(
atk
)
end
end
function
c68299524
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68299524
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c68299524
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
,
c
:
GetAttack
())
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c68299524
.
desfilter
(
chkc
,
c
:
GetAttack
())
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c68299524
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
:
GetAttack
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c68299524
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
c
,
c
:
GetAttack
())
local
g
=
Duel
.
SelectTarget
(
tp
,
c68299524
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
c
:
GetAttack
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c68299524
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68299524
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -89,7 +85,6 @@ function c68299524.atkcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -89,7 +85,6 @@ function c68299524.atkcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c68299524
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68299524
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -101,5 +96,4 @@ function c68299524.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -101,5 +96,4 @@ function c68299524.atkop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
end
end
end
c80560728.lua
View file @
92679e23
...
@@ -23,7 +23,6 @@ function c80560728.initial_effect(c)
...
@@ -23,7 +23,6 @@ function c80560728.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e3
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c80560728
.
atcon
)
e3
:
SetCondition
(
c80560728
.
atcon
)
e3
:
SetCost
(
c80560728
.
atcost
)
e3
:
SetCost
(
c80560728
.
atcost
)
e3
:
SetOperation
(
c80560728
.
atop
)
e3
:
SetOperation
(
c80560728
.
atop
)
...
@@ -33,7 +32,6 @@ function c80560728.initial_effect(c)
...
@@ -33,7 +32,6 @@ function c80560728.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCondition
(
c80560728
.
descon
)
e4
:
SetCondition
(
c80560728
.
descon
)
e4
:
SetOperation
(
c80560728
.
desop
)
e4
:
SetOperation
(
c80560728
.
desop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
@@ -62,7 +60,7 @@ function c80560728.atcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,7 +60,7 @@ function c80560728.atcon(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
c
:
GetFirstCardTarget
()
local
tc
=
c
:
GetFirstCardTarget
()
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
return
at
==
tc
and
d
and
(
d
:
IsRelateToBattle
()
or
not
d
:
IsReason
(
REASON_BATTLE
)
)
return
at
==
tc
and
d
and
d
:
IsRelateToBattle
(
)
end
end
function
c80560728
.
costfilter
(
c
)
function
c80560728
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
...
@@ -80,40 +78,15 @@ function c80560728.atop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,40 +78,15 @@ function c80560728.atop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToBattle
()
then
if
tc
:
IsRelateToBattle
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_MUST_ATTACK
)
e1
:
SetCode
(
EFFECT_MUST_ATTACK
)
e1
:
SetCondition
(
c80560728
.
ancon
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_FIRST_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetCondition
(
c80560728
.
ancon
)
e2
:
SetTarget
(
c80560728
.
antarget
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EVENT_BATTLE_START
)
e3
:
SetOperation
(
c80560728
.
anop
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
tc
:
RegisterEffect
(
e3
)
Duel
.
ChainAttack
()
Duel
.
ChainAttack
()
end
end
end
end
function
c80560728
.
ancon
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
80560728
)
==
0
end
function
c80560728
.
antarget
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
end
function
c80560728
.
anop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
80560728
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
,
0
,
1
)
end
function
c80560728
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c80560728
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
...
...
c81782376.lua
View file @
92679e23
...
@@ -40,14 +40,14 @@ function c81782376.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,14 +40,14 @@ function c81782376.drcon(e,tp,eg,ep,ev,re,r,rp)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c81782376
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81782376
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
81782376
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
81782376
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
ct
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
g
)
Duel
.
SetTargetParam
(
ct
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
ct
)
end
end
function
c81782376
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81782376
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
g
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
t
p
,
LOCATION_GRAVE
,
0
,
nil
,
81782376
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
p
,
LOCATION_GRAVE
,
0
,
nil
,
81782376
)
Duel
.
Draw
(
p
,
g
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
end
end
c82627406.lua
View file @
92679e23
...
@@ -44,7 +44,7 @@ function c82627406.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,7 +44,7 @@ function c82627406.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c82627406
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c82627406
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
end
function
c82627406
.
ctfilter
(
c
)
function
c82627406
.
ctfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x20a2
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
SetCard
(
0x20a2
)
end
end
function
c82627406
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82627406
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tg
=
Duel
.
GetMatchingGroup
(
c82627406
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
c82627406
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
...
...
c93927067.lua
View file @
92679e23
...
@@ -12,9 +12,10 @@ function c93927067.initial_effect(c)
...
@@ -12,9 +12,10 @@ function c93927067.initial_effect(c)
--atkup
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
93927067
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
93927067
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCondition
(
c93927067
.
atk
con
)
e2
:
SetCondition
(
aux
.
bdo
con
)
e2
:
SetOperation
(
c93927067
.
atkop
)
e2
:
SetOperation
(
c93927067
.
atkop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--atkdown
--atkdown
...
@@ -31,9 +32,6 @@ function c93927067.spcon(e,c)
...
@@ -31,9 +32,6 @@ function c93927067.spcon(e,c)
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
nil
)
==
0
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
nil
)
==
0
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
end
function
c93927067
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsFaceup
()
and
e
:
GetHandler
():
IsRelateToBattle
()
end
function
c93927067
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93927067
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
...
@@ -47,13 +45,11 @@ function c93927067.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,13 +45,11 @@ function c93927067.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c93927067
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93927067
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetAttacker
()
local
tc
=
c
:
GetBattleTarget
()
if
c
==
tc
then
tc
=
Duel
.
GetAttackTarget
()
end
if
not
tc
:
IsRelateToBattle
()
or
tc
:
IsFacedown
()
then
return
end
if
not
tc
:
IsRelateToBattle
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
-
500
)
e1
:
SetValue
(
-
500
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
...
...
c94561645.lua
View file @
92679e23
...
@@ -11,7 +11,7 @@ function c94561645.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c94561645.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c94561645
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94561645
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetFirst
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
end
function
c94561645
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c94561645
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
c95697223.lua
View file @
92679e23
...
@@ -12,9 +12,10 @@ end
...
@@ -12,9 +12,10 @@ end
function
c95697223
.
filter
(
c
)
function
c95697223
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsStatus
(
STATUS_SPSUMMON_TURN
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsStatus
(
STATUS_SPSUMMON_TURN
)
end
end
function
c95697223
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c95697223
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c95697223
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c95697223
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c95697223
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsStatus
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
STATUS_SPSUMMON_TURN
)
end
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsStatus
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
STATUS_SPSUMMON_TURN
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c95697223
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c95697223
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
...
@@ -22,10 +23,9 @@ function c95697223.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -22,10 +23,9 @@ function c95697223.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsStatus
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
STATUS_SPSUMMON_TURN
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsStatus
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
STATUS_SPSUMMON_TURN
)
if
ct
>
0
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
ct
>
0
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetValue
(
ct
)
e1
:
SetValue
(
ct
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_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