Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
f1a22d3a
Commit
f1a22d3a
authored
Dec 27, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push by Appveyor
parent
e9e70b7c
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
384 additions
and
178 deletions
+384
-178
expansions/script/c13254057.lua
expansions/script/c13254057.lua
+1
-1
expansions/script/c13257201.lua
expansions/script/c13257201.lua
+12
-1
expansions/script/c13257202.lua
expansions/script/c13257202.lua
+14
-3
expansions/script/c13257203.lua
expansions/script/c13257203.lua
+12
-1
expansions/script/c13257204.lua
expansions/script/c13257204.lua
+12
-1
expansions/script/c13257205.lua
expansions/script/c13257205.lua
+60
-8
expansions/script/c13257206.lua
expansions/script/c13257206.lua
+50
-32
expansions/script/c13257207.lua
expansions/script/c13257207.lua
+2
-2
expansions/script/c13257208.lua
expansions/script/c13257208.lua
+18
-32
expansions/script/c13257209.lua
expansions/script/c13257209.lua
+3
-3
expansions/script/c13257210.lua
expansions/script/c13257210.lua
+11
-7
expansions/script/c13257211.lua
expansions/script/c13257211.lua
+4
-3
expansions/script/c13257212.lua
expansions/script/c13257212.lua
+12
-1
expansions/script/c13257213.lua
expansions/script/c13257213.lua
+22
-31
expansions/script/c13257214.lua
expansions/script/c13257214.lua
+29
-21
expansions/script/c13257215.lua
expansions/script/c13257215.lua
+22
-4
expansions/script/c13257216.lua
expansions/script/c13257216.lua
+12
-1
expansions/script/c13257217.lua
expansions/script/c13257217.lua
+13
-15
expansions/script/c13257218.lua
expansions/script/c13257218.lua
+48
-2
expansions/script/c13257219.lua
expansions/script/c13257219.lua
+22
-4
expansions/script/c13257230.lua
expansions/script/c13257230.lua
+4
-5
expansions/script/c22261002.lua
expansions/script/c22261002.lua
+1
-0
No files found.
expansions/script/c13254057.lua
View file @
f1a22d3a
...
...
@@ -107,7 +107,7 @@ function c13254057.desop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SendtoDeck
(
sg
,
nil
,
2
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c1325405
1
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c1325405
7
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
tg
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
tg
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
...
...
expansions/script/c13257201.lua
View file @
f1a22d3a
...
...
@@ -41,6 +41,14 @@ function c13257201.initial_effect(c)
e4
:
SetCost
(
c13257201
.
atkcost
)
e4
:
SetOperation
(
c13257201
.
atkop
)
c
:
RegisterEffect
(
e4
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257201
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257201
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -52,7 +60,7 @@ function c13257201.desrepop(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1f
,
1
,
REASON_EFFECT
)
end
function
c13257201
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
end
function
c13257201
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
...
...
@@ -72,3 +80,6 @@ function c13257201.atkop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
end
end
function
c13257201
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257201
,
4
))
end
expansions/script/c13257202.lua
View file @
f1a22d3a
...
...
@@ -30,6 +30,14 @@ function c13257202.initial_effect(c)
e4
:
SetTarget
(
c13257202
.
postg
)
e4
:
SetOperation
(
c13257202
.
posop
)
c
:
RegisterEffect
(
e4
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257202
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257202
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -41,10 +49,10 @@ function c13257202.desrepop(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1f
,
1
,
REASON_EFFECT
)
end
function
c13257202
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
end
function
c13257202
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c13257202
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAttackPos
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c13257202
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -55,7 +63,7 @@ end
function
c13257202
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAttackPos
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
g
,
POS_FACEUP_DEFENSE
)
if
Duel
.
ChangePosition
(
g
,
POS_FACEUP_DEFENSE
)
==
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c13257202
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
...
...
@@ -65,3 +73,6 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c13257202
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257202
,
4
))
end
expansions/script/c13257203.lua
View file @
f1a22d3a
...
...
@@ -42,6 +42,14 @@ function c13257203.initial_effect(c)
e5
:
SetCost
(
c13257203
.
descost
)
e5
:
SetOperation
(
c13257203
.
swop
)
c
:
RegisterEffect
(
e5
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257203
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257203
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -53,7 +61,7 @@ function c13257203.desrepop(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1f
,
1
,
REASON_EFFECT
)
end
function
c13257203
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
end
function
c13257203
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x1f
,
1
,
REASON_COST
)
end
...
...
@@ -92,3 +100,6 @@ function c13257203.swop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e7
)
end
end
function
c13257203
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257203
,
4
))
end
expansions/script/c13257204.lua
View file @
f1a22d3a
...
...
@@ -29,6 +29,14 @@ function c13257204.initial_effect(c)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257204
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257204
.
otfilter
(
c
,
tp
)
...
...
@@ -75,5 +83,8 @@ function c13257204.desrepop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c13257204
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
1
)
end
function
c13257204
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257204
,
4
))
end
expansions/script/c13257205.lua
View file @
f1a22d3a
--巨大战舰 巨核Mk-2(D)
function
c13257205
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x1f
)
--summon with no tribute
local
e11
=
Effect
.
CreateEffect
(
c
)
e11
:
SetDescription
(
aux
.
Stringid
(
13257205
,
1
))
e11
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e11
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABLE
)
e11
:
SetType
(
EFFECT_TYPE_SINGLE
)
e11
:
SetCode
(
EFFECT_SUMMON_PROC
)
e11
:
SetCondition
(
c13257205
.
ntcon
)
e11
:
SetCondition
(
c13257205
.
otcon
)
e11
:
SetOperation
(
c13257205
.
otop
)
e11
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
c
:
RegisterEffect
(
e11
)
--Destroy replace
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -30,20 +31,57 @@ function c13257205.initial_effect(c)
c
:
RegisterEffect
(
e3
)
--atkup
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
13257205
,
2
))
e4
:
SetDescription
(
aux
.
Stringid
(
13257205
,
3
))
e4
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCost
(
c13257205
.
atkcost
)
e4
:
SetTarget
(
c13257205
.
atktg
)
e4
:
SetOperation
(
c13257205
.
atkop
)
c
:
RegisterEffect
(
e4
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257205
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257205
.
ntcon
(
e
,
c
,
minc
)
function
c13257205
.
otfilter
(
c
)
return
c
:
IsSetCard
(
0x353
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReleasable
()
end
function
c13257205
.
otfilter1
(
c
)
return
c
:
IsSetCard
(
0x353
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
end
function
c13257205
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
c
:
GetLevel
()
>
4
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
)
==
0
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
c13257205
.
otfilter
,
tp
,
LOCATION_HAND
,
0
,
c
)
local
mg1
=
Duel
.
GetMatchingGroup
(
c13257205
.
otfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
return
c
:
GetLevel
()
>
6
and
minc
<=
2
and
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>=
1
or
Duel
.
CheckTribute
(
c
,
1
,
1
,
mg1
))
or
c
:
GetLevel
()
>
4
and
c
:
GetLevel
()
<=
6
and
minc
<=
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>=
1
end
function
c13257205
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c13257205
.
otfilter
,
tp
,
LOCATION_HAND
,
0
,
c
)
local
mg1
=
Duel
.
GetMatchingGroup
(
c13257205
.
otfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
sg
=
Group
.
CreateGroup
()
if
c
:
GetLevel
()
>
6
then
if
mg
:
GetCount
()
>
0
and
mg1
:
GetCount
()
==
0
or
(
mg
:
GetCount
()
>
0
and
mg1
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
13257205
,
2
)))
then
sg
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
else
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg1
)
end
else
sg
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
end
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c13257205
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
...
...
@@ -54,12 +92,16 @@ function c13257205.desrepop(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1f
,
1
,
REASON_EFFECT
)
end
function
c13257205
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
end
function
c13257205
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x1f
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x1f
,
1
,
REASON_COST
)
end
function
c13257205
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetEffectCount
(
EFFECT_EXTRA_ATTACK
)
==
0
and
e
:
GetHandler
():
GetEffectCount
(
EFFECT_EXTRA_ATTACK_MONSTER
)
==
0
end
end
function
c13257205
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
...
...
@@ -74,5 +116,15 @@ function c13257205.atkop(e,tp,eg,ep,ev,re,r,rp)
e6
:
SetCode
(
EFFECT_NO_BATTLE_DAMAGE
)
e6
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e6
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e7
:
SetCode
(
EFFECT_EXTRA_ATTACK_MONSTER
)
e7
:
SetValue
(
1
)
e7
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e7
)
end
end
function
c13257205
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257205
,
4
))
end
expansions/script/c13257206.lua
View file @
f1a22d3a
--巨大战舰 巨核Mk-3(D)
function
c13257206
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x1f
)
--special summon
local
e11
=
Effect
.
CreateEffect
(
c
)
e11
:
SetType
(
EFFECT_TYPE_FIELD
)
e11
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e11
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e11
:
SetTargetRange
(
POS_FACEUP_DEFENSE
,
0
)
e11
:
SetRange
(
LOCATION_HAND
)
e11
:
SetCondition
(
c13257206
.
sprcon
)
e11
:
SetDescription
(
aux
.
Stringid
(
13257206
,
1
))
e11
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e11
:
SetType
(
EFFECT_TYPE_SINGLE
)
e11
:
SetCode
(
EFFECT_SUMMON_PROC
)
e11
:
SetCondition
(
c13257206
.
otcon
)
e11
:
SetOperation
(
c13257206
.
otop
)
e11
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
c
:
RegisterEffect
(
e11
)
--Destroy replace
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -44,23 +44,45 @@ function c13257206.initial_effect(c)
e5
:
SetCondition
(
c13257206
.
damcon
)
e5
:
SetOperation
(
c13257206
.
damop
)
c
:
RegisterEffect
(
e5
)
--
to deck
--
damage
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetCategory
(
CATEGORY_TODECK
)
e6
:
SetType
(
EFFECT_TYPE_IGNITION
)
e6
:
SetRange
(
LOCATION_GRAVE
)
e6
:
SetCost
(
c13257206
.
tdcost
)
e6
:
SetTarget
(
c13257206
.
tdtg
)
e6
:
SetOperation
(
c13257206
.
tdop
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e6
:
SetCondition
(
c13257206
.
damcon1
)
e6
:
SetOperation
(
c13257206
.
damop
)
c
:
RegisterEffect
(
e6
)
local
e7
=
e6
:
Clone
()
e6
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e7
)
local
e8
=
e7
:
Clone
()
e8
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e8
:
SetCondition
(
c13257206
.
damcon2
)
c
:
RegisterEffect
(
e8
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257206
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257206
.
sprcon
(
e
,
c
)
function
c13257206
.
otfilter
(
c
)
return
c
:
IsSetCard
(
0x353
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c13257206
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
mg
=
Duel
.
GetMatchingGroup
(
c13257206
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
return
c
:
GetLevel
()
>
6
and
minc
<=
1
and
Duel
.
CheckTribute
(
c
,
1
,
1
,
mg
)
end
function
c13257206
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c13257206
.
otfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c13257206
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
...
...
@@ -71,7 +93,7 @@ function c13257206.desrepop(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1f
,
1
,
REASON_EFFECT
)
end
function
c13257206
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
end
function
c13257206
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
13257206
,
RESET_EVENT
+
0x1fc0000
+
RESET_CHAIN
,
0
,
1
)
...
...
@@ -82,21 +104,17 @@ function c13257206.damcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c13257206
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
13257206
)
Duel
.
Damage
(
1
-
tp
,
5
00
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
2
00
,
REASON_EFFECT
)
end
function
c13257206
.
tdcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
function
c13257206
.
cfilter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
end
function
c13257206
.
tdfilter
(
c
)
return
c
:
IsSetCard
(
0x15
)
and
c
:
IsAbleToDeck
(
)
function
c13257206
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c13257206
.
cfilter
,
1
,
nil
,
1
-
tp
)
end
function
c13257206
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13257206
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c13257206
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
function
c13257206
.
damcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
end
function
c13257206
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c13257206
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
function
c13257206
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257206
,
4
))
end
expansions/script/c13257207.lua
View file @
f1a22d3a
...
...
@@ -35,7 +35,7 @@ function c13257207.spcon(e,c)
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
function
c13257207
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
1
00000085
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
1
3257207
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c13257207
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -51,7 +51,7 @@ function c13257207.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c13257207
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
100000085
)
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
13257207
)
end
function
c13257207
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13257207
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c13257208.lua
View file @
f1a22d3a
...
...
@@ -5,6 +5,7 @@ function c13257208.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c13257208
.
target
)
e1
:
SetOperation
(
c13257208
.
activate
)
c
:
RegisterEffect
(
e1
)
--atk/def up
...
...
@@ -13,41 +14,22 @@ function c13257208.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
15
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
353
))
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e3
)
--indes
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x15
))
e4
:
SetValue
(
c13257208
.
indval
)
c
:
RegisterEffect
(
e4
)
--cannot be target
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x15
))
e5
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
13257208
,
1
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_IGNITION
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetCountLimit
(
1
)
e6
:
SetTarget
(
c13257208
.
sptg
)
e6
:
SetOperation
(
c13257208
.
spop
)
c
:
RegisterEffect
(
e6
)
--
local e6=Effect.CreateEffect(c)
--
e6:SetDescription(aux.Stringid(13257208,1))
--
e6:SetCategory(CATEGORY_SPECIAL_SUMMON)
--
e6:SetType(EFFECT_TYPE_IGNITION)
--
e6:SetRange(LOCATION_FZONE)
--
e6:SetCountLimit(1)
--
e6:SetTarget(c13257208.sptg)
--
e6:SetOperation(c13257208.spop)
--
c:RegisterEffect(e6)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
13257208
,
2
))
e7
:
SetCategory
(
CATEGORY_DRAW
)
...
...
@@ -62,7 +44,11 @@ function c13257208.initial_effect(c)
end
function
c13257208
.
thfilter
(
c
)
return
c
:
IsCode
(
511000019
)
and
c
:
IsAbleToHand
()
return
(
c
:
IsCode
(
13257209
)
or
c
:
IsCode
(
13257211
))
and
c
:
IsAbleToHand
()
end
function
c13257208
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257208
,
4
))
end
function
c13257208
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
@@ -78,7 +64,7 @@ function c13257208.indval(e,re,rp)
return
rp
~=
e
:
GetHandlerPlayer
()
end
function
c13257208
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c13257208
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -94,7 +80,7 @@ function c13257208.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c13257208
.
cfilter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
GetReasonPlayer
()
~=
tp
and
c
:
IsReason
(
REASON_EFFECT
)
))
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsSetCard
(
0x353
)
and
(
c
:
GetReasonPlayer
()
~=
tp
and
c
:
IsReason
(
REASON_EFFECT
))
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
end
function
c13257208
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c13257209.lua
View file @
f1a22d3a
...
...
@@ -6,7 +6,7 @@ function c13257209.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_COUNTER
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetTarget
(
c13257209
.
target
)
e1
:
SetOperation
(
c13257209
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -24,7 +24,7 @@ function c13257209.initial_effect(c)
end
function
c13257209
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanAddCounter
(
0x1f
,
3
)
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanAddCounter
(
0x1f
,
3
)
end
function
c13257209
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsOnField
()
and
c13257209
.
filter
(
chkc
)
end
...
...
@@ -48,7 +48,7 @@ end
function
c13257209
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0x1f
,
3
)
tc
:
AddCounter
(
0x1f
,
1
)
end
end
function
c13257209
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c13257210.lua
View file @
f1a22d3a
...
...
@@ -41,13 +41,14 @@ function c13257210.initial_effect(c)
e4
:
SetTarget
(
c13257210
.
sptg
)
e4
:
SetOperation
(
c13257210
.
spop
)
c
:
RegisterEffect
(
e4
)
--add code
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
)
e12
:
SetCode
(
EFFECT_ADD_SETCODE
)
e12
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e12
:
SetValue
(
0x15
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257210
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257210
.
ntcon
(
e
,
c
,
minc
)
...
...
@@ -78,13 +79,13 @@ function c13257210.desrepop(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1f
,
1
,
REASON_EFFECT
)
end
function
c13257210
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
end
function
c13257210
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetFirst
()
==
e
:
GetHandler
()
end
function
c13257210
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
6
)
and
c
:
IsSetCard
(
0x
15
)
and
not
c
:
IsCode
(
12079734
)
return
c
:
IsLevelBelow
(
6
)
and
c
:
IsSetCard
(
0x
353
)
and
not
c
:
IsCode
(
13257210
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c13257210
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -101,3 +102,6 @@ function c13257210.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c13257210
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257210
,
4
))
end
expansions/script/c13257211.lua
View file @
f1a22d3a
--BOSS来袭(D)
function
c13257211
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
13257211
)
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -23,7 +24,7 @@ function c13257211.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EVENT_
TO_GRAVE
)
e4
:
SetCode
(
EVENT_
LEAVE_FIELD
)
e4
:
SetOperation
(
c13257211
.
checkop
)
c
:
RegisterEffect
(
e4
,
0
)
local
e5
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -66,7 +67,7 @@ function c13257211.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c13257211
.
chkfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsSetCard
(
0x
353
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
end
function
c13257211
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c13257211
.
chkfilter
,
1
,
nil
,
tp
)
then
...
...
@@ -77,7 +78,7 @@ function c13257211.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetFlagEffect
(
13257211
)
~=
0
end
function
c13257211
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c13257211
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c13257212.lua
View file @
f1a22d3a
...
...
@@ -30,6 +30,14 @@ function c13257212.initial_effect(c)
e3
:
SetTarget
(
c13257212
.
thtg
)
e3
:
SetOperation
(
c13257212
.
thop
)
c
:
RegisterEffect
(
e3
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257212
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257212
.
spcon
(
e
,
c
)
...
...
@@ -76,7 +84,7 @@ function c13257212.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
function
c13257212
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsAbleToHand
()
end
function
c13257212
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13257212
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -90,3 +98,6 @@ function c13257212.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c13257212
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257212
,
4
))
end
expansions/script/c13257213.lua
View file @
f1a22d3a
...
...
@@ -11,8 +11,7 @@ function c13257213.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--Activate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
...
@@ -24,7 +23,7 @@ function c13257213.initial_effect(c)
end
function
c13257213
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsLevelBelow
(
6
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c13257213
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -57,36 +56,28 @@ function c13257213.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
function
c13257213
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c13257213
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c13257213
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c13257213
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
att
=
tc
:
GetAttribute
()
if
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c13257213
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
Duel
.
RegisterEffect
(
e3
,
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c13257213
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
expansions/script/c13257214.lua
View file @
f1a22d3a
...
...
@@ -10,14 +10,6 @@ function c13257214.initial_effect(c)
e1
:
SetCondition
(
c13257214
.
spcon
)
e1
:
SetOperation
(
c13257214
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c13257214
.
retcon
)
e2
:
SetOperation
(
c13257214
.
retop
)
c
:
RegisterEffect
(
e2
)
--spsummon cost
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -26,8 +18,29 @@ function c13257214.initial_effect(c)
e3
:
SetCost
(
c13257214
.
spcost
)
e3
:
SetOperation
(
c13257214
.
spcop
)
c
:
RegisterEffect
(
e3
)
--indes
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetValue
(
c13257214
.
indct
)
c
:
RegisterEffect
(
e4
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257214
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
Duel
.
AddCustomActivityCounter
(
13257214
,
ACTIVITY_NORMALSUMMON
,
c13257214
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
13257214
,
ACTIVITY_SPSUMMON
,
c13257214
.
counterfilter
)
end
function
c13257214
.
counterfilter
(
c
)
return
c
:
IsSetCard
(
0x353
)
end
function
c13257214
.
spfilter
(
c
,
ft
)
return
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
...
...
@@ -44,7 +57,7 @@ function c13257214.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c13257214
.
spcost
(
e
,
c
,
tp
)
return
Duel
.
Get
ActivityCount
(
tp
,
ACTIVITY_NORMALSUMMON
)
==
0
return
Duel
.
Get
CustomActivityCount
(
13257214
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
13257214
,
tp
,
ACTIVITY_NORMALSUMMON
)
==
0
end
function
c13257214
.
spcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -64,18 +77,13 @@ function c13257214.spcop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
function
c13257214
.
splimit
(
e
,
c
)
return
not
c
:
IsSetCard
(
0x
15
)
return
not
c
:
IsSetCard
(
0x
353
)
end
function
c13257214
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetControler
()
~=
e
:
GetHandler
():
GetOwner
(
)
function
c13257214
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257214
,
4
)
)
end
function
c13257214
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetOwner
()
c
:
ResetEffect
(
EFFECT_SET_CONTROL
,
RESET_CODE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_CONTROL
)
e1
:
SetValue
(
c
:
GetOwner
())
e1
:
SetReset
(
RESET_EVENT
+
0xec0000
)
c
:
RegisterEffect
(
e1
)
function
c13257214
.
indct
(
e
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
then
return
1
else
return
0
end
end
expansions/script/c13257215.lua
View file @
f1a22d3a
...
...
@@ -10,6 +10,13 @@ function c13257215.initial_effect(c)
e11
:
SetOperation
(
c13257215
.
otop
)
e11
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
c
:
RegisterEffect
(
e11
)
--cannot special summon
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
)
e12
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e12
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e12
)
--Destroy replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
...
...
@@ -31,7 +38,7 @@ function c13257215.initial_effect(c)
c
:
RegisterEffect
(
e3
)
--remove
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
132572
03
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
132572
15
,
2
))
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -51,6 +58,14 @@ function c13257215.initial_effect(c)
e5
:
SetTarget
(
c13257215
.
sptg
)
e5
:
SetOperation
(
c13257215
.
spop
)
c
:
RegisterEffect
(
e5
)
local
e13
=
Effect
.
CreateEffect
(
c
)
e13
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e13
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e13
:
SetOperation
(
c13257215
.
bgmop
)
c
:
RegisterEffect
(
e13
)
local
e14
=
e13
:
Clone
()
e14
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e14
)
end
function
c13257215
.
otfilter
(
c
,
tp
)
...
...
@@ -146,14 +161,14 @@ function c13257215.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c13257215
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
s
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
GetReasonPlayer
()
~=
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
end
function
c13257215
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
6
)
and
c
:
IsSetCard
(
0x
15
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
6
)
and
c
:
IsSetCard
(
0x
353
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c13257215
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13257215
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13257215
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c13257215
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -164,3 +179,6 @@ function c13257215.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c13257215
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257215
,
4
))
end
expansions/script/c13257216.lua
View file @
f1a22d3a
...
...
@@ -36,6 +36,14 @@ function c13257216.initial_effect(c)
e4
:
SetTarget
(
c13257216
.
thtg
)
e4
:
SetOperation
(
c13257216
.
thop
)
c
:
RegisterEffect
(
e4
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257216
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
end
function
c13257216
.
cfilter
(
c
,
tp
)
...
...
@@ -79,7 +87,7 @@ function c13257216.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
function
c13257216
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsAbleToHand
()
end
function
c13257216
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13257216
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -93,3 +101,6 @@ function c13257216.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c13257216
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257216
,
4
))
end
expansions/script/c13257217.lua
View file @
f1a22d3a
...
...
@@ -15,14 +15,14 @@ function c13257217.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_COUNTER
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c1325721
5
.
ctop
)
e2
:
SetOperation
(
c1325721
7
.
ctop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
--remove
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
132572
03
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
132572
17
,
1
))
e4
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_POSITION
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -31,36 +31,31 @@ function c13257217.initial_effect(c)
e4
:
SetCountLimit
(
1
)
e4
:
SetHintTiming
(
0
,
0x1e0
)
e4
:
SetCondition
(
c13257217
.
poscon
)
e4
:
SetCost
(
c13257217
.
poscost
)
e4
:
SetTarget
(
c13257217
.
postg
)
e4
:
SetOperation
(
c13257217
.
posop
)
c
:
RegisterEffect
(
e4
)
end
function
c132572
02
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c132572
17
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
e
:
GetHandler
():
GetCounter
(
0x1f
)
>
0
end
return
true
end
function
c132572
02
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c132572
17
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1f
,
1
,
REASON_EFFECT
)
end
function
c132572
02
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
function
c132572
17
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
end
function
c132572
02
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c132572
17
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c13257202
.
poscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x1f
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x1f
,
1
,
REASON_COST
)
end
function
c13257202
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c13257217
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c132572
02
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c132572
17
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
sg
,
POS_FACEUP_DEFENSE
,
0
,
POS_FACEUP_ATTACK
,
0
)
...
...
@@ -69,7 +64,7 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
-
700
)
sc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
@@ -79,3 +74,6 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c13257217
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257217
,
4
))
end
expansions/script/c13257218.lua
View file @
f1a22d3a
...
...
@@ -12,10 +12,18 @@ function c13257218.initial_effect(c)
e11
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e11
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e11
:
SetRange
(
LOCATION_HAND
)
e11
:
SetTargetRange
(
POS_FACEUP
,
1
)
e11
:
SetTargetRange
(
POS_FACEUP
_ATTACK
,
1
)
e11
:
SetCondition
(
c13257218
.
spcon
)
e11
:
SetOperation
(
c13257218
.
spop
)
c
:
RegisterEffect
(
e11
)
--spsummon cost
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
)
e12
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e12
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e12
:
SetCost
(
c13257218
.
spcost
)
e12
:
SetOperation
(
c13257218
.
spcop
)
c
:
RegisterEffect
(
e12
)
--Destroy replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
...
...
@@ -60,8 +68,21 @@ function c13257218.initial_effect(c)
e5
:
SetTarget
(
c13257218
.
distg
)
e5
:
SetOperation
(
c13257218
.
disop
)
c
:
RegisterEffect
(
e5
)
local
e13
=
Effect
.
CreateEffect
(
c
)
e13
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e13
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e13
:
SetOperation
(
c13257218
.
bgmop
)
c
:
RegisterEffect
(
e13
)
local
e14
=
e13
:
Clone
()
e14
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e14
)
Duel
.
AddCustomActivityCounter
(
13257218
,
ACTIVITY_SPSUMMON
,
c13257218
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
13257218
,
ACTIVITY_NORMALSUMMON
,
c13257218
.
counterfilter
)
end
function
c13257218
.
counterfilter
(
c
)
return
not
c
:
IsSetCard
(
0x353
)
end
function
c13257218
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
e
:
GetHandler
():
GetCounter
(
0x1f
)
>
0
end
...
...
@@ -144,7 +165,7 @@ function c13257218.discon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsChainNegatable
(
ev
)
end
function
c13257218
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsDiscardable
()
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsDiscardable
()
end
function
c13257218
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13257218
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
@@ -163,3 +184,28 @@ function c13257218.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
function
c13257218
.
spcost
(
e
,
c
,
tp
)
return
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_NORMALSUMMON
)
==
0
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
function
c13257218
.
spcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c13257218
.
splimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
function
c13257218
.
splimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
return
not
c
:
IsSetCard
(
0x356
)
end
function
c13257218
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257218
,
4
))
end
expansions/script/c13257219.lua
View file @
f1a22d3a
...
...
@@ -31,15 +31,27 @@ function c13257219.initial_effect(c)
e3
:
SetTarget
(
c13257219
.
sptg
)
e3
:
SetOperation
(
c13257219
.
spop
)
c
:
RegisterEffect
(
e3
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetOperation
(
c13257219
.
bgmop
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
()
e13
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e13
)
Duel
.
AddCustomActivityCounter
(
13257219
,
ACTIVITY_SPSUMMON
,
c13257219
.
counterfilter
)
end
function
c13257219
.
counterfilter
(
c
)
return
c
:
GetSummonLocation
()
~=
LOCATION_EXTRA
end
function
c13257219
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToGraveAsCost
()
and
c
:
IsDiscardable
()
end
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c13257219
.
filter
(
c
)
return
c
:
IsCode
(
975299
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
13257208
)
and
c
:
IsAbleToHand
()
end
function
c13257219
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13257219
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -53,7 +65,7 @@ function c13257219.operation(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c13257219
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
975299
)
return
Duel
.
IsEnvironment
(
13257208
)
end
function
c13257219
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToGraveAsCost
()
...
...
@@ -66,7 +78,7 @@ function c13257219.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c13257219
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
15
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
353
)
and
c
:
IsAbleToHand
()
end
function
c13257219
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_GRAVE
and
chkc
:
GetControler
()
==
tp
and
c13257219
.
thfilter
(
chkc
)
end
...
...
@@ -83,7 +95,7 @@ function c13257219.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c13257219
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
GetCustomActivityCount
(
13257219
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
...
...
@@ -92,6 +104,9 @@ function c13257219.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTarget
(
c13257219
.
sumlimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
cg
,
REASON_COST
+
REASON_DISCARD
)
end
function
c13257219
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
...
...
@@ -122,3 +137,6 @@ function c13257219.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c13257219
.
bgmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
11
,
0
,
aux
.
Stringid
(
13257219
,
4
))
end
expansions/script/c13257230.lua
View file @
f1a22d3a
...
...
@@ -109,16 +109,15 @@ end
function
c13257230
.
caop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToBattle
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
ChainAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_
CANNOT_DIRECT
_ATTACK
)
e1
:
Set
Property
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
+
PHASE_DAMAGE_CAL
)
e1
:
SetCode
(
EFFECT_
EXTRA
_ATTACK
)
e1
:
Set
Value
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
c
:
RegisterEffect
(
e1
)
end
function
c13257230
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
eg
:
GetFirst
()
==
e
:
GetHandler
()
return
ep
~=
tp
end
function
c13257230
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
expansions/script/c22261002.lua
View file @
f1a22d3a
...
...
@@ -28,6 +28,7 @@ function c22261002.IsKuMaKawa(c)
return
m
and
m
.
named_with_KuMaKawa
end
function
c22261002
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
)
==
0
end
function
c22261002
.
thfilter1
(
c
)
...
...
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