Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
d85fc462
Commit
d85fc462
authored
Jan 23, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dededededededededededede
parent
ec060c27
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
96 additions
and
87 deletions
+96
-87
expansions/script/c33310503.lua
expansions/script/c33310503.lua
+2
-1
expansions/script/c60151611.lua
expansions/script/c60151611.lua
+73
-71
expansions/script/c60151612.lua
expansions/script/c60151612.lua
+7
-5
expansions/script/c60151613.lua
expansions/script/c60151613.lua
+7
-5
expansions/script/c60151614.lua
expansions/script/c60151614.lua
+7
-5
No files found.
expansions/script/c33310503.lua
View file @
d85fc462
...
...
@@ -57,7 +57,8 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingTarget
(
cm
.
tdfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
tg
=
Duel
.
SelectTarget
(
tp
,
cm
.
tdfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
tg
:
GetBaseAttack
())
local
tc
=
tg
:
GetFirst
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
tc
:
GetBaseAttack
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
...
...
expansions/script/c60151611.lua
View file @
d85fc462
--终结与开始 鹿目圆香
function
c60151611
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
c60151611
.
mfilter
,
3
,
2
)
c
:
EnableReviveLimit
()
aux
.
AddXyzProcedure
(
c
,
c60151611
.
mfilter
,
3
,
2
)
c
:
EnableReviveLimit
()
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
,
false
)
aux
.
EnablePendulumAttribute
(
c
,
false
)
local
e11
=
Effect
.
CreateEffect
(
c
)
e11
:
SetCategory
(
CATEGORY_RECOVER
+
CATEGORY_ATKCHANGE
)
e11
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e11
:
SetRange
(
LOCATION_MZONE
)
e11
:
SetCode
(
EVENT_CHAIN_ACTIVATING
)
e11
:
SetOperation
(
c60151611
.
disop
)
c
:
RegisterEffect
(
e11
)
e11
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e11
:
SetRange
(
LOCATION_MZONE
)
e11
:
SetCode
(
EVENT_CHAIN_ACTIVATING
)
e11
:
SetOperation
(
c60151611
.
disop
)
c
:
RegisterEffect
(
e11
)
--addown
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
60151611
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
60151611
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
60151611
)
e1
:
SetCost
(
c60151611
.
adcost
)
e1
:
SetTarget
(
c60151611
.
adtg
)
e1
:
SetOperation
(
c60151611
.
adop
)
c
:
RegisterEffect
(
e1
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
60151611
)
e1
:
SetCost
(
c60151611
.
adcost
)
e1
:
SetTarget
(
c60151611
.
adtg
)
e1
:
SetOperation
(
c60151611
.
adop
)
c
:
RegisterEffect
(
e1
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
60151601
,
0
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -37,15 +37,15 @@ function c60151611.initial_effect(c)
e5
:
SetOperation
(
c60151611
.
operation
)
c
:
RegisterEffect
(
e5
)
--pendulum
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_EXTRA
)
e4
:
SetCountLimit
(
1
,
6011611
)
e4
:
SetCost
(
c60151611
.
cost
)
e4
:
SetCondition
(
c60151611
.
spcon
)
e4
:
SetTarget
(
c60151611
.
pentg
)
e4
:
SetOperation
(
c60151611
.
penop
)
c
:
RegisterEffect
(
e4
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_EXTRA
)
e4
:
SetCountLimit
(
1
,
6011611
)
e4
:
SetCost
(
c60151611
.
cost
)
e4
:
SetCondition
(
c60151611
.
spcon
)
e4
:
SetTarget
(
c60151611
.
pentg
)
e4
:
SetOperation
(
c60151611
.
penop
)
c
:
RegisterEffect
(
e4
)
end
c60151611
.
pendulum_level
=
3
function
c60151611
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -72,75 +72,77 @@ function c60151611.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c60151611
.
mfilter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
function
c60151611
.
afilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcb25
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcb25
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c60151611
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
(
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
IsActivated
())
then
return
end
Duel
.
Hint
(
HINT_CARD
,
0
,
60151611
)
if
not
(
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
IsActivated
())
then
return
end
Duel
.
Hint
(
HINT_CARD
,
0
,
60151611
)
Duel
.
Recover
(
tp
,
300
,
REASON_EFFECT
)
local
g
=
Duel
.
GetMatchingGroup
(
c60151611
.
afilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
100
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
tc
=
g
:
GetNext
()
end
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
100
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
tc
=
g
:
GetNext
()
end
end
function
c60151611
.
adcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
end
function
c60151611
.
filter
(
c
)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
end
function
c60151611
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60151611
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60151611
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c60151611
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c60151611
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
(
math.abs
(
Duel
.
GetLP
(
0
)
-
Duel
.
GetLP
(
1
))))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
end
local
g
=
Duel
.
GetMatchingGroup
(
c60151611
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
(
math.abs
(
Duel
.
GetLP
(
0
)
-
Duel
.
GetLP
(
1
))))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
end
if
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
then
Duel
.
Recover
(
tp
,(
math.abs
(
Duel
.
GetLP
(
0
)
-
Duel
.
GetLP
(
1
)))
/
2
,
REASON_EFFECT
)
end
end
function
c60151611
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsFaceup
()
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
)
return
e
:
GetHandler
():
IsFaceup
(
)
end
function
c60151611
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c60151611
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60151611
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60151611
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60151611
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60151611
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c60151611
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lsc
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
local
rsc
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
if
chk
==
0
then
return
lsc
or
rsc
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c60151611
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
\ No newline at end of file
expansions/script/c60151612.lua
View file @
d85fc462
...
...
@@ -144,7 +144,7 @@ function c60151612.setcon3(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
end
function
c60151612
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsFaceup
()
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
return
e
:
GetHandler
():
IsFaceup
()
end
function
c60151612
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToGraveAsCost
()
...
...
@@ -156,10 +156,12 @@ function c60151612.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c60151612
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lsc
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
local
rsc
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
if
chk
==
0
then
return
lsc
or
rsc
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c60151612
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
\ No newline at end of file
expansions/script/c60151613.lua
View file @
d85fc462
...
...
@@ -96,7 +96,7 @@ function c60151613.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c60151613
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsFaceup
()
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
return
e
:
GetHandler
():
IsFaceup
()
end
function
c60151613
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToGraveAsCost
()
...
...
@@ -108,12 +108,14 @@ function c60151613.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c60151613
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lsc
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
local
rsc
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
if
chk
==
0
then
return
lsc
or
rsc
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c60151613
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
function
c60151613
.
adcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
expansions/script/c60151614.lua
View file @
d85fc462
...
...
@@ -153,7 +153,7 @@ function c60151614.setcon3(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
end
function
c60151614
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsFaceup
()
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
return
e
:
GetHandler
():
IsFaceup
()
end
function
c60151614
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToGraveAsCost
()
...
...
@@ -165,10 +165,12 @@ function c60151614.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c60151614
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lsc
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
local
rsc
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
if
chk
==
0
then
return
lsc
or
rsc
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c60151614
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
\ No newline at end of file
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