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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
afe27a11
Commit
afe27a11
authored
Dec 26, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
d9d47c0c
Pipeline
#8262
passed with stages
in 22 minutes and 49 seconds
Changes
8
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
74 additions
and
73 deletions
+74
-73
expansions/lflist.conf
expansions/lflist.conf
+1
-0
expansions/script/c12300706.lua
expansions/script/c12300706.lua
+2
-1
expansions/script/c13959996.lua
expansions/script/c13959996.lua
+4
-4
expansions/script/c33701501.lua
expansions/script/c33701501.lua
+0
-1
expansions/script/c33701502.lua
expansions/script/c33701502.lua
+25
-25
expansions/script/c33701511.lua
expansions/script/c33701511.lua
+34
-34
expansions/script/c33701534.lua
expansions/script/c33701534.lua
+4
-4
expansions/script/c33701536.lua
expansions/script/c33701536.lua
+4
-4
No files found.
expansions/lflist.conf
View file @
afe27a11
...
...
@@ -1529,6 +1529,7 @@
75126432
1
--械龙机·重装
75125451
0
--械龙铠·辉凤铠
75125452
0
--械龙铠·传说的数据核
75124570
0
--数据融合场
#756
75640052
0
--旅人 伊蕾娜
75646054
1
--忆梦长廊 琪亚娜
...
...
expansions/script/c12300706.lua
View file @
afe27a11
...
...
@@ -79,7 +79,8 @@ function cm.seop(e,tp,eg,ep,ev,re,r,rp)
end
if
e
:
GetLabel
()
~=
1
then
return
end
local
c
=
e
:
GetHandler
()
local
cg
=
Duel
.
GetMatchingGroup
(
cm
.
filctr
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
cp
=
c
:
GetControler
()
local
cg
=
Duel
.
GetMatchingGroup
(
cm
.
filctr
,
cp
,
0
,
LOCATION_MZONE
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
cm
.
filctr
(
c
)
and
cg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
BreakEffect
()
...
...
expansions/script/c13959996.lua
View file @
afe27a11
This source diff could not be displayed because it is too large. You can
view the blob
instead.
expansions/script/c33701501.lua
View file @
afe27a11
...
...
@@ -14,7 +14,6 @@ function cm.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetCondition
(
cm
.
cecondition
)
e1
:
SetTarget
(
cm
.
cetarget
)
e1
:
SetOperation
(
cm
.
ceoperation
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c33701502.lua
View file @
afe27a11
--【背景音台】Shelter
function
c
m
.
initial_effect
(
c
)
function
c
33701502
.
initial_effect
(
c
)
--activate
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
e0
:
SetTarget
(
c
m
.
target
)
e0
:
SetOperation
(
c
m
.
activate
)
e0
:
SetTarget
(
c
33701502
.
target
)
e0
:
SetOperation
(
c
33701502
.
activate
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetOperation
(
c
m
.
rcop
)
e1
:
SetOperation
(
c
33701502
.
rcop
)
c
:
RegisterEffect
(
e1
)
--cannot be destroyed
local
e7
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e8
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetRange
(
LOCATION_FZONE
)
e8
:
SetTargetRange
(
1
,
0
)
e8
:
SetTarget
(
c
m
.
setlimit
)
e8
:
SetTarget
(
c
33701502
.
setlimit
)
c
:
RegisterEffect
(
e8
)
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -37,25 +37,25 @@ function cm.initial_effect(c)
e9
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e9
:
SetRange
(
LOCATION_FZONE
)
e9
:
SetTargetRange
(
1
,
0
)
e9
:
SetValue
(
c
m
.
actlimit
)
e9
:
SetValue
(
c
33701502
.
actlimit
)
c
:
RegisterEffect
(
e9
)
if
not
c
m
.
global_check
then
c
m
.
global_check
=
true
c
m
[
0
]
=
0
if
not
c
33701502
.
global_check
then
c
33701502
.
global_check
=
true
c
33701502
[
0
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_TO_GRAVE
)
ge1
:
SetOperation
(
c
m
.
checkop
)
ge1
:
SetOperation
(
c
33701502
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge3
=
Effect
.
CreateEffect
(
c
)
ge3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge3
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge3
:
SetOperation
(
c
m
.
clear
)
ge3
:
SetOperation
(
c
33701502
.
clear
)
Duel
.
RegisterEffect
(
ge3
,
0
)
end
end
function
c
m
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
33701502
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
c
=
e
:
GetHandler
()
--to grave
...
...
@@ -66,44 +66,44 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetOperation
(
c
m
.
tgop
)
e1
:
SetOperation
(
c
33701502
.
tgop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
6
)
c
:
SetTurnCounter
(
0
)
c
:
RegisterEffect
(
e1
)
end
function
c
m
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
33701502
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetTurnCounter
()
ct
=
ct
+
1
c
:
SetTurnCounter
(
ct
)
if
ct
==
6
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
end
function
c
m
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
33701502
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
m
,
2
))
end
function
c
m
.
rccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
m
[
0
]
>
0
function
c
33701502
.
rccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
33701502
[
0
]
>
0
end
function
c
m
.
rcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
Recover
(
tp
,
c
m
[
0
],
REASON_EFFECT
)
>=
2500
then
function
c
33701502
.
rcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
Recover
(
tp
,
c
33701502
[
0
],
REASON_EFFECT
)
>=
2500
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
function
c
m
.
setlimit
(
e
,
c
,
tp
)
function
c
33701502
.
setlimit
(
e
,
c
,
tp
)
return
c
:
IsType
(
TYPE_FIELD
)
end
function
c
m
.
actlimit
(
e
,
re
,
tp
)
function
c
33701502
.
actlimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c
m
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
33701502
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
IsType
(
TYPE_MONSTER
)
then
c
m
[
0
]
=
cm
[
0
]
+
tc
:
GetLevel
()
+
tc
:
GetRank
()
c
33701502
[
0
]
=
c33701502
[
0
]
+
tc
:
GetLevel
()
+
tc
:
GetRank
()
end
tc
=
eg
:
GetNext
()
end
end
function
c
m
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c
m
[
0
]
=
0
function
c
33701502
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c
33701502
[
0
]
=
0
end
expansions/script/c33701511.lua
View file @
afe27a11
...
...
@@ -3,13 +3,13 @@ function c33701511.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCondition
(
c
m
.
discon
)
e1
:
SetCondition
(
c
33701511
.
discon
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
1
)
e2
:
SetCondition
(
c
m
.
discon
)
e2
:
SetCondition
(
c
33701511
.
discon
)
c
:
RegisterEffect
(
e2
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -17,44 +17,44 @@ function c33701511.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCost
(
c
m
.
spcost
)
e1
:
SetTarget
(
c
m
.
sptg
)
e1
:
SetOperation
(
c
m
.
spop
)
e1
:
SetCost
(
c
33701511
.
spcost
)
e1
:
SetTarget
(
c
33701511
.
sptg
)
e1
:
SetOperation
(
c
33701511
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c
m
.
condition
)
e2
:
SetOperation
(
c
m
.
operation
)
e2
:
SetCondition
(
c
33701511
.
condition
)
e2
:
SetOperation
(
c
33701511
.
operation
)
c
:
RegisterEffect
(
e2
)
if
not
c
m
.
global_check
then
c
m
.
global_check
=
true
c
m
[
0
]
=
0
c
m
[
1
]
=
0
if
not
c
33701511
.
global_check
then
c
33701511
.
global_check
=
true
c
33701511
[
0
]
=
0
c
33701511
[
1
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
ge1
:
SetOperation
(
c
m
.
checkop
)
ge1
:
SetOperation
(
c
33701511
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c
m
.
discon
(
e
)
return
bit
.
band
(
c
m
[
e
:
GetControler
()],
0x1
<<
(
e
:
GetHandler
():
GetLevel
()
-
1
))
>
0
function
c
33701511
.
discon
(
e
)
return
bit
.
band
(
c
33701511
[
e
:
GetControler
()],
0x1
<<
(
e
:
GetHandler
():
GetLevel
()
-
1
))
>
0
end
function
c
m
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
33701511
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c
m
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
33701511
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33701517
,
0
,
0x4011
,
1500
,
1500
,
4
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c
m
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
33701511
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33701517
,
0
,
0x4011
,
1500
,
1500
,
4
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
33701517
)
...
...
@@ -65,22 +65,22 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCondition
(
c
m
.
atcon
)
e1
:
SetCost
(
c
m
.
spcost
)
e1
:
SetTarget
(
c
m
.
attg
)
e1
:
SetOperation
(
c
m
.
atop
)
e1
:
SetCondition
(
c
33701511
.
atcon
)
e1
:
SetCost
(
c
33701511
.
spcost
)
e1
:
SetTarget
(
c
33701511
.
attg
)
e1
:
SetOperation
(
c
33701511
.
atop
)
token
:
RegisterEffect
(
e1
,
true
)
end
function
c
m
.
indfilter
(
c
)
function
c
33701511
.
indfilter
(
c
)
return
c
:
IsCode
(
33701507
)
and
c
:
IsFaceup
()
end
function
c
m
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c
m
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
function
c
33701511
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c
33701511
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c
m
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
33701511
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c
m
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
33701511
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
local
sc
=
g
:
GetFirst
()
...
...
@@ -97,19 +97,19 @@ function cm.atop(e,tp,eg,ep,ev,re,r,rp)
sc
=
g
:
GetNext
()
end
end
function
c
m
.
filter
(
c
)
function
c
33701511
.
filter
(
c
)
return
c
:
IsSetCard
(
0x9440
)
and
c
:
IsAbleToHand
()
end
function
c
m
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
return
Duel
.
IsExistingMatchingCard
(
c
m
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
function
c
33701511
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
return
Duel
.
IsExistingMatchingCard
(
c
33701511
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c
m
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
33701511
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c
m
.
aclimit
)
e1
:
SetValue
(
c
33701511
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -120,14 +120,14 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetTargetRange
(
0
,
1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c
m
.
aclimit
(
e
,
re
,
tp
)
function
c
33701511
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsOnField
()
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c
m
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
33701511
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
IsLevelAbove
(
1
)
and
tc
:
IsSetCard
(
0x9440
)
then
c
m
[
ep
]
=
bit
.
bor
(
cm
[
ep
],
0x1
<<
tc
:
GetLevel
())
c
33701511
[
ep
]
=
bit
.
bor
(
c33701511
[
ep
],
0x1
<<
tc
:
GetLevel
())
end
tc
=
eg
:
GetNext
()
end
...
...
expansions/script/c33701534.lua
View file @
afe27a11
...
...
@@ -43,10 +43,10 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
m
,
aux
.
Stringid
(
m
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
m
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
end
local
tc
=
g
:
GetFirst
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
expansions/script/c33701536.lua
View file @
afe27a11
...
...
@@ -43,10 +43,10 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
m
,
aux
.
Stringid
(
m
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
m
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
end
local
tc
=
g
:
GetFirst
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
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