Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
b055534e
Commit
b055534e
authored
May 26, 2025
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a37f24d9
Changes
22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
177 additions
and
625 deletions
+177
-625
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/pics/11164678.jpg
expansions/pics/11164678.jpg
+0
-0
expansions/pics/15703179.jpg
expansions/pics/15703179.jpg
+0
-0
expansions/pics/15745019.jpg
expansions/pics/15745019.jpg
+0
-0
expansions/pics/18402543.jpg
expansions/pics/18402543.jpg
+0
-0
expansions/pics/18525208.jpg
expansions/pics/18525208.jpg
+0
-0
expansions/script/c11164678.lua
expansions/script/c11164678.lua
+0
-100
expansions/script/c15703179.lua
expansions/script/c15703179.lua
+0
-97
expansions/script/c15745019.lua
expansions/script/c15745019.lua
+0
-111
expansions/script/c18402543.lua
expansions/script/c18402543.lua
+0
-122
expansions/script/c18525208.lua
expansions/script/c18525208.lua
+0
-96
expansions/script/c21000767.lua
expansions/script/c21000767.lua
+1
-1
expansions/script/c21080001.lua
expansions/script/c21080001.lua
+1
-1
expansions/script/c21080002.lua
expansions/script/c21080002.lua
+1
-1
expansions/script/c21080003.lua
expansions/script/c21080003.lua
+1
-1
expansions/script/c21080004.lua
expansions/script/c21080004.lua
+1
-1
expansions/script/c75739002.lua
expansions/script/c75739002.lua
+1
-1
expansions/script/c75739003.lua
expansions/script/c75739003.lua
+1
-1
expansions/script/c89387017.lua
expansions/script/c89387017.lua
+159
-81
expansions/script/c98500140.lua
expansions/script/c98500140.lua
+5
-5
expansions/script/c98500150.lua
expansions/script/c98500150.lua
+6
-5
expansions/script/c98500320.lua
expansions/script/c98500320.lua
+0
-1
No files found.
expansions/no81.cdb
View file @
b055534e
No preview for this file type
expansions/pics/11164678.jpg
deleted
100644 → 0
View file @
a37f24d9
54.5 KB
expansions/pics/15703179.jpg
deleted
100644 → 0
View file @
a37f24d9
52.4 KB
expansions/pics/15745019.jpg
deleted
100644 → 0
View file @
a37f24d9
53 KB
expansions/pics/18402543.jpg
deleted
100644 → 0
View file @
a37f24d9
54.1 KB
expansions/pics/18525208.jpg
deleted
100644 → 0
View file @
a37f24d9
52.2 KB
expansions/script/c11164678.lua
deleted
100644 → 0
View file @
a37f24d9
--超量機獣エアロボロス
local
m
=
11164678
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
85374678
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
4
,
2
)
c
:
EnableReviveLimit
()
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCondition
(
cm
.
atcon
)
c
:
RegisterEffect
(
e1
)
--pos
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetCategory
(
CATEGORY_POSITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e2
:
SetCondition
(
cm
.
setcon1
)
e2
:
SetCost
(
cm
.
setcost
)
e2
:
SetTarget
(
cm
.
settg
)
e2
:
SetOperation
(
cm
.
setop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetCondition
(
cm
.
setcon2
)
c
:
RegisterEffect
(
e3
)
--material
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
cm
.
mttg
)
e4
:
SetOperation
(
cm
.
mtop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
atcon
(
e
)
return
e
:
GetHandler
():
GetOverlayCount
()
==
0
end
function
cm
.
setcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
85374678
)
end
function
cm
.
setcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
85374678
)
end
function
cm
.
setcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
setfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanTurnSet
()
end
function
cm
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
cm
.
setfilter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
setfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
setfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
function
cm
.
ofilter
(
c
,
e
)
return
c
:
IsCanOverlay
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
cm
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsHasEffect
(
89387017
)
and
c
:
IsRelateToEffect
(
e
)
and
cm
.
ofilter
(
tc
,
e
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
89387017
,
0
))
then
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
tc
)
else
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
end
end
end
function
cm
.
mtfilter
(
c
,
e
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x10dc
)
and
c
:
IsCanOverlay
()
and
not
(
e
and
c
:
IsImmuneToEffect
(
e
))
end
function
cm
.
mttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
c
,
g
)
end
end
expansions/script/c15703179.lua
deleted
100644 → 0
View file @
a37f24d9
--超量機獣マグナライガー
local
m
=
15703179
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
59975920
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
5
,
2
)
c
:
EnableReviveLimit
()
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCondition
(
cm
.
atcon
)
c
:
RegisterEffect
(
e1
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e2
:
SetCondition
(
cm
.
descon1
)
e2
:
SetCost
(
cm
.
descost
)
e2
:
SetTarget
(
cm
.
destg
)
e2
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetCondition
(
cm
.
descon2
)
c
:
RegisterEffect
(
e3
)
--material
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
cm
.
mttg
)
e4
:
SetOperation
(
cm
.
mtop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
atcon
(
e
)
return
e
:
GetHandler
():
GetOverlayCount
()
==
0
end
function
cm
.
descon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
59975920
)
end
function
cm
.
descon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
59975920
)
end
function
cm
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
cm
.
ofilter
(
c
,
e
)
return
c
:
IsCanOverlay
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsHasEffect
(
89387017
)
and
c
:
IsRelateToEffect
(
e
)
and
cm
.
ofilter
(
tc
,
e
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
89387017
,
0
))
then
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
tc
)
else
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
function
cm
.
mtfilter
(
c
,
e
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x10dc
)
and
c
:
IsCanOverlay
()
and
not
(
e
and
c
:
IsImmuneToEffect
(
e
))
end
function
cm
.
mttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
c
,
g
)
end
end
expansions/script/c15745019.lua
deleted
100644 → 0
View file @
a37f24d9
--超量機獣ラスターレックス
local
m
=
15745019
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
73422829
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
7
,
2
)
c
:
EnableReviveLimit
()
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCondition
(
cm
.
atcon
)
c
:
RegisterEffect
(
e1
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DISABLE
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e2
:
SetCondition
(
cm
.
discon1
)
e2
:
SetCost
(
cm
.
discost
)
e2
:
SetTarget
(
cm
.
distg
)
e2
:
SetOperation
(
cm
.
disop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetCondition
(
cm
.
discon2
)
c
:
RegisterEffect
(
e3
)
--material
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
cm
.
mttg
)
e4
:
SetOperation
(
cm
.
mtop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
atcon
(
e
)
return
e
:
GetHandler
():
GetOverlayCount
()
==
0
end
function
cm
.
discon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
73422829
)
end
function
cm
.
discon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
73422829
)
end
function
cm
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
not
c
:
IsDisabled
()
end
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
cm
.
disfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
disfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
disfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
function
cm
.
ofilter
(
c
,
e
)
return
c
:
IsCanOverlay
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsHasEffect
(
89387017
)
and
c
:
IsRelateToEffect
(
e
)
and
cm
.
ofilter
(
tc
,
e
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
89387017
,
0
))
then
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
tc
)
else
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
end
end
end
function
cm
.
mtfilter
(
c
,
e
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x10dc
)
and
c
:
IsCanOverlay
()
and
not
(
e
and
c
:
IsImmuneToEffect
(
e
))
end
function
cm
.
mttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
c
,
g
)
end
end
expansions/script/c18402543.lua
deleted
100644 → 0
View file @
a37f24d9
--超量機神王グレート・マグナス
local
m
=
18402543
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
12
,
3
)
c
:
EnableReviveLimit
()
--to deck
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
cm
.
tdcon
)
e1
:
SetCost
(
cm
.
tdcost
)
e1
:
SetTarget
(
cm
.
tdtg
)
e1
:
SetOperation
(
cm
.
tdop
)
c
:
RegisterEffect
(
e1
)
--immune
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
imcon
)
e2
:
SetValue
(
cm
.
efilter
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_TO_HAND
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetCondition
(
cm
.
drcon
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsLocation
,
LOCATION_DECK
))
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_CANNOT_DRAW
)
e4
:
SetCondition
(
cm
.
drcon
)
e4
:
SetTargetRange
(
0
,
1
)
c
:
RegisterEffect
(
e4
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCode
(
EVENT_TO_GRAVE
)
e6
:
SetTarget
(
cm
.
sptg
)
e6
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayGroup
():
GetClassCount
(
Card
.
GetCode
)
>=
2
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
end
function
cm
.
tdcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
function
cm
.
ofilter
(
c
,
e
)
return
c
:
IsCanOverlay
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
cm
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
sg
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
sg
)
if
c
:
IsHasEffect
(
89387017
)
and
c
:
IsRelateToEffect
(
e
)
and
not
sg
:
IsExists
(
aux
.
NOT
(
cm
.
ofilter
),
nil
,
1
,
e
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
89387017
,
0
))
then
for
tc
in
aux
.
Next
(
sg
)
do
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
end
Duel
.
Overlay
(
c
,
sg
)
else
Duel
.
SendtoDeck
(
sg
,
nil
,
2
,
REASON_EFFECT
)
end
end
end
function
cm
.
imcon
(
e
)
return
e
:
GetHandler
():
GetOverlayGroup
():
GetClassCount
(
Card
.
GetCode
)
>=
4
end
function
cm
.
efilter
(
e
,
te
)
return
not
te
:
GetOwner
():
IsSetCard
(
0xdc
)
end
function
cm
.
drcon
(
e
)
return
e
:
GetHandler
():
GetOverlayGroup
():
GetClassCount
(
Card
.
GetCode
)
>=
6
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x20dc
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
2
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
2
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
3
,
tp
,
LOCATION_GRAVE
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
ft
>
2
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
3
,
3
)
Duel
.
SpecialSummon
(
g1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
expansions/script/c18525208.lua
deleted
100644 → 0
View file @
a37f24d9
--超量機獣グランパルス
local
m
=
18525208
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
12369277
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
3
,
2
)
c
:
EnableReviveLimit
()
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCondition
(
cm
.
atcon
)
c
:
RegisterEffect
(
e1
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e2
:
SetCondition
(
cm
.
descon1
)
e2
:
SetCost
(
cm
.
descost
)
e2
:
SetTarget
(
cm
.
destg
)
e2
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
+
TIMING_EQUIP
)
e3
:
SetCondition
(
cm
.
descon2
)
c
:
RegisterEffect
(
e3
)
--material
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
cm
.
mttg
)
e4
:
SetOperation
(
cm
.
mtop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
atcon
(
e
)
return
e
:
GetHandler
():
GetOverlayCount
()
==
0
end
function
cm
.
descon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
12369277
)
end
function
cm
.
descon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
12369277
)
end
function
cm
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
cm
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
cm
.
ofilter
(
c
,
e
)
return
c
:
IsCanOverlay
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsHasEffect
(
89387017
)
and
c
:
IsRelateToEffect
(
e
)
and
cm
.
ofilter
(
tc
,
e
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
89387017
,
0
))
then
Duel
.
Overlay
(
c
,
tc
)
else
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
end
end
end
function
cm
.
mtfilter
(
c
,
e
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x10dc
)
and
c
:
IsCanOverlay
()
and
not
(
e
and
c
:
IsImmuneToEffect
(
e
))
end
function
cm
.
mttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
c
,
g
)
end
end
expansions/script/c21000767.lua
View file @
b055534e
...
...
@@ -89,7 +89,7 @@ end
function
s
.
eqlimit
(
e
,
c
)
return
true
return
c
:
IsCode
(
21000763
)
end
function
s
.
filter110
(
c
)
return
c
:
IsFaceup
()
...
...
expansions/script/c21080001.lua
View file @
b055534e
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e01
:
SetCode
(
EVENT_BE_PRE_MATERIAL
)
e01
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
+
EFFECT_FLAG_CANNOT_DISABLE
)
e01
:
SetLabelObject
(
e0
)
e01
:
SetCondition
(
s
.
hsyncon
)
e01
:
SetCondition
(
cm
.
hsyncon
)
c
:
RegisterEffect
(
e01
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c21080002.lua
View file @
b055534e
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e01
:
SetCode
(
EVENT_BE_PRE_MATERIAL
)
e01
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
+
EFFECT_FLAG_CANNOT_DISABLE
)
e01
:
SetLabelObject
(
e0
)
e01
:
SetCondition
(
s
.
hsyncon
)
e01
:
SetCondition
(
cm
.
hsyncon
)
c
:
RegisterEffect
(
e01
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c21080003.lua
View file @
b055534e
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e01
:
SetCode
(
EVENT_BE_PRE_MATERIAL
)
e01
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
+
EFFECT_FLAG_CANNOT_DISABLE
)
e01
:
SetLabelObject
(
e0
)
e01
:
SetCondition
(
s
.
hsyncon
)
e01
:
SetCondition
(
cm
.
hsyncon
)
c
:
RegisterEffect
(
e01
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c21080004.lua
View file @
b055534e
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e01
:
SetCode
(
EVENT_BE_PRE_MATERIAL
)
e01
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
+
EFFECT_FLAG_CANNOT_DISABLE
)
e01
:
SetLabelObject
(
e0
)
e01
:
SetCondition
(
s
.
hsyncon
)
e01
:
SetCondition
(
cm
.
hsyncon
)
c
:
RegisterEffect
(
e01
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c75739002.lua
View file @
b055534e
...
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_HAND
)
--e1:SetCountLimit(1,id)
e1
:
SetCondition
(
s
.
spcon
)
--
e1:SetCondition(s.spcon)
e1
:
SetCost
(
s
.
cost
)
e1
:
SetTarget
(
s
.
sptg
)
e1
:
SetOperation
(
s
.
spop
)
...
...
expansions/script/c75739003.lua
View file @
b055534e
...
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_HAND
)
--e1:SetCountLimit(1,id)
e1
:
SetCondition
(
s
.
spcon
)
--
e1:SetCondition(s.spcon)
e1
:
SetCost
(
s
.
cost
)
e1
:
SetTarget
(
s
.
sptg
)
e1
:
SetOperation
(
s
.
spop
)
...
...
expansions/script/c89387017.lua
View file @
b055534e
This diff is collapsed.
Click to expand it.
expansions/script/c98500140.lua
View file @
b055534e
...
...
@@ -43,7 +43,7 @@ function c98500140.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c98500140
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
98500140
,
9
),
aux
.
Stringid
(
98500140
,
10
))
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
98500140
,
7
),
aux
.
Stringid
(
98500140
,
8
))
if
op
==
0
then
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_ATTACK
)
else
...
...
@@ -117,18 +117,18 @@ function c98500140.hspop(e,tp,eg,ep,ev,re,r,rp)
local
ts
=
{}
local
index
=
1
if
e
:
GetHandler
():
IsSummonable
(
true
,
nil
)
then
ts
[
index
]
=
aux
.
Stringid
(
98500140
,
7
)
ts
[
index
]
=
aux
.
Stringid
(
98500140
,
9
)
index
=
index
+
1
end
if
e
:
GetHandler
():
IsMSetable
(
true
,
nil
)
then
ts
[
index
]
=
aux
.
Stringid
(
98500140
,
8
)
ts
[
index
]
=
aux
.
Stringid
(
98500140
,
10
)
index
=
index
+
1
end
local
c
=
e
:
GetHandler
()
local
opt
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ts
))
if
ts
[
opt
+
1
]
==
aux
.
Stringid
(
98500140
,
7
)
then
if
ts
[
opt
+
1
]
==
aux
.
Stringid
(
98500140
,
9
)
then
Duel
.
Summon
(
tp
,
c
,
true
,
nil
)
elseif
ts
[
opt
+
1
]
==
aux
.
Stringid
(
98500140
,
8
)
then
elseif
ts
[
opt
+
1
]
==
aux
.
Stringid
(
98500140
,
10
)
then
Duel
.
MSet
(
tp
,
c
,
true
,
nil
)
end
local
tc
=
Duel
.
GetFirstTarget
()
...
...
expansions/script/c98500150.lua
View file @
b055534e
...
...
@@ -42,7 +42,7 @@ function c98500150.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c98500150
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
98500150
,
9
),
aux
.
Stringid
(
98500150
,
10
))
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
98500150
,
7
),
aux
.
Stringid
(
98500150
,
8
))
if
op
==
0
then
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_ATTACK
)
else
...
...
@@ -115,18 +115,18 @@ function c98500150.hspop(e,tp,eg,ep,ev,re,r,rp)
local
ts
=
{}
local
index
=
1
if
e
:
GetHandler
():
IsSummonable
(
true
,
nil
)
then
ts
[
index
]
=
aux
.
Stringid
(
98500150
,
7
)
ts
[
index
]
=
aux
.
Stringid
(
98500150
,
9
)
index
=
index
+
1
end
if
e
:
GetHandler
():
IsMSetable
(
true
,
nil
)
then
ts
[
index
]
=
aux
.
Stringid
(
98500150
,
8
)
ts
[
index
]
=
aux
.
Stringid
(
98500150
,
10
)
index
=
index
+
1
end
local
c
=
e
:
GetHandler
()
local
opt
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ts
))
if
ts
[
opt
+
1
]
==
aux
.
Stringid
(
98500150
,
7
)
then
if
ts
[
opt
+
1
]
==
aux
.
Stringid
(
98500150
,
9
)
then
Duel
.
Summon
(
tp
,
c
,
true
,
nil
)
elseif
ts
[
opt
+
1
]
==
aux
.
Stringid
(
98500150
,
8
)
then
elseif
ts
[
opt
+
1
]
==
aux
.
Stringid
(
98500150
,
10
)
then
Duel
.
MSet
(
tp
,
c
,
true
,
nil
)
end
local
tc
=
Duel
.
GetFirstTarget
()
...
...
@@ -153,6 +153,7 @@ function c98500150.desop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
if
Duel
.
IsExistingTarget
(
c98500150
.
filter4
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
98500150
,
4
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c98500150
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
tc2
=
g2
:
GetFirst
()
Duel
.
GetControl
(
tc2
,
tp
,
PHASE_END
,
1
)
...
...
expansions/script/c98500320.lua
View file @
b055534e
...
...
@@ -4,7 +4,6 @@ function c98500320.initial_effect(c)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
98500320
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
...
...
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