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
cbb95e3a
Commit
cbb95e3a
authored
Oct 04, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
灵依bug修复
parent
de65c36b
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1177 additions
and
1041 deletions
+1177
-1041
expansions/script/c50000200.lua
expansions/script/c50000200.lua
+171
-170
expansions/script/c50000201.lua
expansions/script/c50000201.lua
+188
-187
expansions/script/c50000202.lua
expansions/script/c50000202.lua
+53
-53
expansions/script/c50000203.lua
expansions/script/c50000203.lua
+129
-128
expansions/script/c50000204.lua
expansions/script/c50000204.lua
+113
-113
expansions/script/c50000205.lua
expansions/script/c50000205.lua
+88
-88
expansions/script/c50000206.lua
expansions/script/c50000206.lua
+87
-87
expansions/script/c50000207.lua
expansions/script/c50000207.lua
+125
-125
expansions/script/c50000208.lua
expansions/script/c50000208.lua
+90
-90
expansions/script/c50000209.lua
expansions/script/c50000209.lua
+133
-0
No files found.
expansions/script/c50000200.lua
View file @
cbb95e3a
...
@@ -132,6 +132,7 @@ function c50000200.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -132,6 +132,7 @@ function c50000200.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c50000200
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50000200
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
expansions/script/c50000201.lua
View file @
cbb95e3a
...
@@ -136,6 +136,7 @@ function c50000201.adtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -136,6 +136,7 @@ function c50000201.adtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50000201
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50000201
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
end
function
c50000201
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000201
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c50000201
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c50000201
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
...
...
expansions/script/c50000202.lua
View file @
cbb95e3a
expansions/script/c50000203.lua
View file @
cbb95e3a
...
@@ -100,6 +100,7 @@ function c50000203.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -100,6 +100,7 @@ function c50000203.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
end
function
c50000203
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000203
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
expansions/script/c50000204.lua
View file @
cbb95e3a
expansions/script/c50000205.lua
View file @
cbb95e3a
...
@@ -51,7 +51,7 @@ function c50000205.IsRely(c)
...
@@ -51,7 +51,7 @@ function c50000205.IsRely(c)
end
end
--ritual effect
--ritual effect
function
c50000205
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000205
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_RITUAL
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_RITUAL
end
end
function
c50000205
.
filter
(
c
)
function
c50000205
.
filter
(
c
)
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsAbleToDeck
()
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsAbleToDeck
()
...
@@ -70,7 +70,7 @@ end
...
@@ -70,7 +70,7 @@ end
--tohand
--tohand
function
c50000205
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000205
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_RITUAL
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetSummonType
()
==
SUMMON_TYPE_RITUAL
end
end
function
c50000205
.
thfilter
(
c
)
function
c50000205
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c50000206.lua
View file @
cbb95e3a
...
@@ -51,7 +51,7 @@ function c50000206.IsRely(c)
...
@@ -51,7 +51,7 @@ function c50000206.IsRely(c)
end
end
--ritual effect
--ritual effect
function
c50000206
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000206
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_RITUAL
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_RITUAL
end
end
function
c50000206
.
filter
(
c
)
function
c50000206
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
@@ -69,7 +69,7 @@ end
...
@@ -69,7 +69,7 @@ end
--tohand
--tohand
function
c50000206
.
secon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000206
.
secon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_RITUAL
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetSummonType
()
==
SUMMON_TYPE_RITUAL
end
end
function
c50000206
.
sefilter
(
c
)
function
c50000206
.
sefilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c50000206
.
IsRely
(
c
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_SPELL
)
and
c50000206
.
IsRely
(
c
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c50000207.lua
View file @
cbb95e3a
...
@@ -65,21 +65,21 @@ function c50000207.IsRely(c)
...
@@ -65,21 +65,21 @@ function c50000207.IsRely(c)
end
end
--ritual effect
--ritual effect
function
c50000207
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000207
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_RITUAL
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_RITUAL
end
end
function
c50000207
.
filter
(
c
)
function
c50000207
.
filter
1
(
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsAbleToDeck
()
return
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
and
c
:
IsAbleToDeck
()
end
end
function
c50000207
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50000207
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50000207
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50000207
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c50000207
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c50000207
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1500
)
end
end
function
c50000207
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000207
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c50000207
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c50000207
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
3
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
1500
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
1500
,
REASON_EFFECT
)
end
end
...
@@ -87,7 +87,7 @@ end
...
@@ -87,7 +87,7 @@ end
--se or sp
--se or sp
function
c50000207
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50000207
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_RITUAL
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetSummonType
()
==
SUMMON_TYPE_RITUAL
end
end
function
c50000207
.
filter
(
c
,
ft
,
e
,
tp
)
function
c50000207
.
filter
(
c
,
ft
,
e
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
(
c
:
IsAbleToHand
()
or
(
ft
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
(
c
:
IsAbleToHand
()
or
(
ft
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
...
...
expansions/script/c50000208.lua
View file @
cbb95e3a
expansions/script/c50000209.lua
0 → 100644
View file @
cbb95e3a
--灵依法师-灵璇
local
m
=
50000209
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--tohand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e1
:
SetDescription
(
aux
.
Stringid
(
50000209
,
0
))
e1
:
SetCode
(
EVENT_TO_DECK
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c50000209
.
drcon
)
e1
:
SetTarget
(
c50000209
.
drtg
)
e1
:
SetOperation
(
c50000209
.
drop
)
c
:
RegisterEffect
(
e1
)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
50000209
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetCountLimit
(
1
,
50000209
)
e2
:
SetCost
(
c50000209
.
cost
)
e2
:
SetTarget
(
c50000209
.
thtg
)
e2
:
SetOperation
(
c50000209
.
thop
)
c
:
RegisterEffect
(
e2
)
--ritual level
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_RITUAL_LEVEL
)
e3
:
SetValue
(
c50000209
.
rlevel
)
c
:
RegisterEffect
(
e3
)
--Remove
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetDescription
(
aux
.
Stringid
(
50000209
,
2
))
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_RELEASE
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e4
:
SetCountLimit
(
1
,
500002091
)
e4
:
SetTarget
(
c50000209
.
thtg1
)
e4
:
SetOperation
(
c50000209
.
thop1
)
c
:
RegisterEffect
(
e4
)
end
c50000209
.
is_named_with_Rely
=
1
function
c50000209
.
IsRely
(
c
)
local
code
=
c
:
GetCode
()
local
mt
=
_G
[
"c"
..
code
]
if
not
mt
then
_G
[
"c"
..
code
]
=
{}
if
pcall
(
function
()
dofile
(
"expansions/script/c"
..
code
..
".lua"
)
end
)
or
pcall
(
function
()
dofile
(
"script/c"
..
code
..
".lua"
)
end
)
then
mt
=
_G
[
"c"
..
code
]
_G
[
"c"
..
code
]
=
nil
else
_G
[
"c"
..
code
]
=
nil
return
false
end
end
return
mt
and
mt
.
is_named_with_Rely
end
function
c50000209
.
drfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
c50000209
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c50000209
.
drfilter
,
1
,
nil
,
tp
)
end
function
c50000209
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c50000209
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
---
function
c50000209
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
end
function
c50000209
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c50000209
.
cfilter
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c50000209
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c50000209
.
filter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToHand
()
end
function
c50000209
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c50000209
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c50000209
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c50000209
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c50000209
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
--ritual level
function
c50000209
.
rlevel
(
e
,
c
)
local
lv
=
e
:
GetHandler
():
GetLevel
()
if
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
then
local
clv
=
c
:
GetLevel
()
return
lv
*
65536
+
clv
else
return
lv
end
end
---
function
c50000209
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c50000209
.
IsRely
(
c
)
and
c
:
IsAbleToHand
()
end
function
c50000209
.
thtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c50000209
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c50000209
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c50000209
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c50000209
.
thop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
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