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
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-scripts
Commits
bc92777f
Commit
bc92777f
authored
Feb 05, 2016
by
StormWulf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revision
parent
83c2fca2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
62 deletions
+50
-62
c33282498.lua
c33282498.lua
+0
-2
c33460840.lua
c33460840.lua
+10
-13
c60681103.lua
c60681103.lua
+0
-1
c6075801.lua
c6075801.lua
+5
-12
c6853254.lua
c6853254.lua
+3
-4
c69868555.lua
c69868555.lua
+32
-30
No files found.
c33282498.lua
View file @
bc92777f
--アークブレイブドラゴン
--アークブレイブドラゴン
--Arc Brave Dragon
--Script by mercury233
function
c33282498
.
initial_effect
(
c
)
function
c33282498
.
initial_effect
(
c
)
--remove
--remove
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c33460840.lua
View file @
bc92777f
--巨竜の守護騎士
--巨竜の守護騎士
--Guardian of Felgrand
--Script by mercury233
function
c33460840
.
initial_effect
(
c
)
function
c33460840
.
initial_effect
(
c
)
--equip
--equip
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -15,15 +13,14 @@ function c33460840.initial_effect(c)
...
@@ -15,15 +13,14 @@ function c33460840.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--spsummon
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
33460840
,
0
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCost
(
c33460840
.
spcost
)
e4
:
SetCost
(
c33460840
.
spcost
)
e3
:
SetTarget
(
c33460840
.
sptg
)
e4
:
SetTarget
(
c33460840
.
sptg
)
e3
:
SetOperation
(
c33460840
.
spop
)
e4
:
SetOperation
(
c33460840
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e4
)
end
end
function
c33460840
.
filter
(
c
,
ec
)
function
c33460840
.
filter
(
c
,
ec
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
(
c
:
GetLevel
()
==
7
or
c
:
GetLevel
()
==
8
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
(
c
:
GetLevel
()
==
7
or
c
:
GetLevel
()
==
8
)
...
@@ -36,7 +33,7 @@ end
...
@@ -36,7 +33,7 @@ end
function
c33460840
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33460840
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
518
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33460840
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33460840
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
c
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
...
@@ -100,4 +97,4 @@ function c33460840.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -100,4 +97,4 @@ function c33460840.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
\ No newline at end of file
c60681103.lua
View file @
bc92777f
--巨神竜フェルグラント
--巨神竜フェルグラント
--Felgrand, the Great Divine Dragon
function
c60681103
.
initial_effect
(
c
)
function
c60681103
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
...
...
c6075801.lua
View file @
bc92777f
--巨竜の聖騎士
--巨竜の聖騎士
--Paladin of Felgrand
function
c6075801
.
initial_effect
(
c
)
function
c6075801
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c6075801
.
eqtg
)
e1
:
SetTarget
(
c6075801
.
eqtg
)
e1
:
SetOperation
(
c6075801
.
eqop
)
e1
:
SetOperation
(
c6075801
.
eqop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
e1
:
Clone
()
e2
:
SetCategory
(
CATEGORY_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetTarget
(
c6075801
.
eqtg
)
e2
:
SetOperation
(
c6075801
.
eqop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--immune
--immune
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -23,11 +17,10 @@ function c6075801.initial_effect(c)
...
@@ -23,11 +17,10 @@ function c6075801.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetCondition
(
c6075801
.
eqcon
1
)
e3
:
SetCondition
(
c6075801
.
eqcon
)
e3
:
SetValue
(
c6075801
.
efilter
)
e3
:
SetValue
(
c6075801
.
efilter
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
98446407
,
0
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
...
@@ -47,7 +40,7 @@ end
...
@@ -47,7 +40,7 @@ end
function
c6075801
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6075801
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
6075801
,
0
)
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c6075801
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c6075801
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
...
@@ -67,7 +60,7 @@ end
...
@@ -67,7 +60,7 @@ end
function
c6075801
.
eqlimit
(
e
,
c
)
function
c6075801
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
return
e
:
GetOwner
()
==
c
end
end
function
c6075801
.
eqcon
1
(
e
)
function
c6075801
.
eqcon
(
e
)
local
eg
=
e
:
GetHandler
():
GetEquipGroup
()
local
eg
=
e
:
GetHandler
():
GetEquipGroup
()
return
eg
:
GetCount
()
>
0
return
eg
:
GetCount
()
>
0
end
end
...
...
c6853254.lua
View file @
bc92777f
--復活の福音
--復活の福音
--Gospel of Revival
--Scripted by Eerie Code
function
c6853254
.
initial_effect
(
c
)
function
c6853254
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -39,7 +37,8 @@ function c6853254.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +37,8 @@ function c6853254.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c6853254
.
repfilter
(
c
,
tp
)
function
c6853254
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
end
end
function
c6853254
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6853254
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c6853254
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c6853254
.
repfilter
,
1
,
nil
,
tp
)
end
...
@@ -50,4 +49,4 @@ function c6853254.repval(e,c)
...
@@ -50,4 +49,4 @@ function c6853254.repval(e,c)
end
end
function
c6853254
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6853254
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
end
end
\ No newline at end of file
c69868555.lua
View file @
bc92777f
--巨神竜の遺跡
--巨神竜の遺跡
--Ruins of the Great Divine Dragon
function
c69868555
.
initial_effect
(
c
)
function
c69868555
.
initial_effect
(
c
)
--
A
ctivate
--
a
ctivate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetDescription
(
aux
.
Stringid
(
69868555
,
0
))
e2
:
SetCategory
(
CATEGORY_DISABLE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c69868555
.
conditi
on
)
e2
:
SetCondition
(
c69868555
.
disc
on
)
e2
:
SetTarget
(
c69868555
.
target
)
e2
:
SetTarget
(
c69868555
.
distg
)
e2
:
SetOperation
(
c69868555
.
operation
)
e2
:
SetOperation
(
c69868555
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
To hand
--
token
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TOKEN
)
e3
:
SetDescription
(
aux
.
Stringid
(
69868555
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
...
@@ -27,12 +30,13 @@ function c69868555.initial_effect(c)
...
@@ -27,12 +30,13 @@ function c69868555.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--to hand
--to hand
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
69868555
,
2
))
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetCost
(
c69868555
.
cost
)
e4
:
SetCost
(
c69868555
.
th
cost
)
e4
:
SetTarget
(
c69868555
.
tg
)
e4
:
SetTarget
(
c69868555
.
t
ht
g
)
e4
:
SetOperation
(
c69868555
.
op
)
e4
:
SetOperation
(
c69868555
.
th
op
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c69868555
.
cfilter
(
c
)
function
c69868555
.
cfilter
(
c
)
...
@@ -41,19 +45,19 @@ end
...
@@ -41,19 +45,19 @@ end
function
c69868555
.
dfilter
(
c
)
function
c69868555
.
dfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
and
(
c
:
GetLevel
()
==
7
or
c
:
GetLevel
()
==
8
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
and
(
c
:
GetLevel
()
==
7
or
c
:
GetLevel
()
==
8
)
end
end
function
c69868555
.
conditi
on
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69868555
.
disc
on
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c69868555
.
cfilter
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c69868555
.
dfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
eg
:
IsExists
(
c69868555
.
cfilter
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c69868555
.
dfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c69868555
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69868555
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
g
=
eg
:
Filter
(
c69868555
.
cfilter
,
nil
)
local
g
=
eg
:
Filter
(
c69868555
.
cfilter
,
nil
)
Duel
.
SetTargetCard
(
e
g
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_D
ESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_D
ISABLE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c69868555
.
filter
(
c
,
e
)
function
c69868555
.
filter
(
c
,
e
)
return
c
:
IsFaceup
()
and
not
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
IsRelateToEffect
(
e
)
return
c
:
IsFaceup
()
and
not
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
IsRelateToEffect
(
e
)
end
end
function
c69868555
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69868555
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
eg
:
Filter
(
c69868555
.
filter
,
nil
,
e
)
local
g
=
eg
:
Filter
(
c69868555
.
filter
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
@@ -80,14 +84,13 @@ function c69868555.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,14 +84,13 @@ function c69868555.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c69868555
.
tkcostfilter
(
c
)
function
c69868555
.
costfilter1
(
c
)
return
c
:
IsAbleToGraveAsCost
()
and
c
:
IsFaceup
()
return
c
:
IsAbleToGraveAsCost
()
and
c
:
IsFaceup
()
end
end
function
c69868555
.
tkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69868555
.
tkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c69868555
.
costfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c69868555
.
tkcostfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69868555
.
costfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69868555
.
tkcostfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c69868555
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69868555
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -97,26 +100,25 @@ function c69868555.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -97,26 +100,25 @@ function c69868555.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
c69868555
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69868555
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
(
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
69868556
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_DRAGON
,
ATTRIBUTE_LIGHT
)
)
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
6024
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_DRAGON
,
ATTRIBUTE_LIGHT
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
6
9868556
)
local
token
=
Duel
.
CreateToken
(
tp
,
6
024
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c69868555
.
thcostfilter
(
c
)
function
c69868555
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
(
c
:
GetLevel
()
==
7
or
c
:
GetLevel
()
==
8
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
(
c
:
GetLevel
()
==
7
or
c
:
GetLevel
()
==
8
)
end
end
function
c69868555
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69868555
.
th
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c69868555
.
costfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c69868555
.
th
costfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69868555
.
costfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69868555
.
th
costfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c69868555
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69868555
.
t
ht
g
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c69868555
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69868555
.
th
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
e
:
GetHandler
())
Duel
.
ConfirmCards
(
1
-
tp
,
e
:
GetHandler
())
...
...
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