Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
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
Vee4
ygopro-rush-duel
Commits
fed371f9
Commit
fed371f9
authored
Oct 27, 2025
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025/10/27 调整更新: XX的主要阶段才能发动
parent
25ead0a8
Changes
199
Hide whitespace changes
Inline
Side-by-side
Showing
199 changed files
with
227 additions
and
813 deletions
+227
-813
script/RDBase.lua
script/RDBase.lua
+3
-2
script/RDCondition.lua
script/RDCondition.lua
+19
-0
script/RDRule.lua
script/RDRule.lua
+6
-0
script/c120109004.lua
script/c120109004.lua
+1
-4
script/c120109005.lua
script/c120109005.lua
+1
-4
script/c120109018.lua
script/c120109018.lua
+1
-2
script/c120109021.lua
script/c120109021.lua
+1
-4
script/c120109022.lua
script/c120109022.lua
+1
-5
script/c120109025.lua
script/c120109025.lua
+1
-4
script/c120109029.lua
script/c120109029.lua
+1
-4
script/c120109033.lua
script/c120109033.lua
+1
-2
script/c120109038.lua
script/c120109038.lua
+1
-4
script/c120109040.lua
script/c120109040.lua
+1
-5
script/c120120029.lua
script/c120120029.lua
+1
-4
script/c120130022.lua
script/c120130022.lua
+1
-4
script/c120130029.lua
script/c120130029.lua
+1
-5
script/c120140017.lua
script/c120140017.lua
+1
-4
script/c120145028.lua
script/c120145028.lua
+1
-4
script/c120145041.lua
script/c120145041.lua
+1
-4
script/c120150022.lua
script/c120150022.lua
+1
-5
script/c120151021.lua
script/c120151021.lua
+1
-4
script/c120151035.lua
script/c120151035.lua
+1
-4
script/c120155031.lua
script/c120155031.lua
+1
-5
script/c120155032.lua
script/c120155032.lua
+1
-5
script/c120170013.lua
script/c120170013.lua
+1
-4
script/c120170021.lua
script/c120170021.lua
+1
-4
script/c120170028.lua
script/c120170028.lua
+1
-4
script/c120183015.lua
script/c120183015.lua
+1
-4
script/c120183023.lua
script/c120183023.lua
+1
-5
script/c120183025.lua
script/c120183025.lua
+1
-2
script/c120183027.lua
script/c120183027.lua
+1
-4
script/c120183028.lua
script/c120183028.lua
+1
-4
script/c120188006.lua
script/c120188006.lua
+1
-4
script/c120190004.lua
script/c120190004.lua
+1
-4
script/c120192017.lua
script/c120192017.lua
+1
-4
script/c120199014.lua
script/c120199014.lua
+1
-5
script/c120203021.lua
script/c120203021.lua
+1
-4
script/c120208017.lua
script/c120208017.lua
+1
-4
script/c120208019.lua
script/c120208019.lua
+1
-4
script/c120208022.lua
script/c120208022.lua
+1
-4
script/c120217037.lua
script/c120217037.lua
+1
-4
script/c120217053.lua
script/c120217053.lua
+1
-4
script/c120217073.lua
script/c120217073.lua
+1
-4
script/c120217074.lua
script/c120217074.lua
+1
-4
script/c120222018.lua
script/c120222018.lua
+1
-4
script/c120222019.lua
script/c120222019.lua
+1
-4
script/c120222027.lua
script/c120222027.lua
+1
-4
script/c120222031.lua
script/c120222031.lua
+1
-1
script/c120222032.lua
script/c120222032.lua
+1
-5
script/c120222033.lua
script/c120222033.lua
+1
-5
script/c120222038.lua
script/c120222038.lua
+1
-4
script/c120223101.lua
script/c120223101.lua
+1
-5
script/c120226017.lua
script/c120226017.lua
+1
-4
script/c120228015.lua
script/c120228015.lua
+1
-4
script/c120228018.lua
script/c120228018.lua
+1
-4
script/c120228022.lua
script/c120228022.lua
+1
-4
script/c120228026.lua
script/c120228026.lua
+1
-4
script/c120228028.lua
script/c120228028.lua
+1
-2
script/c120228031.lua
script/c120228031.lua
+1
-4
script/c120228036.lua
script/c120228036.lua
+1
-5
script/c120231033.lua
script/c120231033.lua
+1
-4
script/c120231048.lua
script/c120231048.lua
+1
-4
script/c120231054.lua
script/c120231054.lua
+1
-4
script/c120231058.lua
script/c120231058.lua
+1
-5
script/c120232002.lua
script/c120232002.lua
+1
-4
script/c120235007.lua
script/c120235007.lua
+1
-4
script/c120235009.lua
script/c120235009.lua
+1
-4
script/c120235022.lua
script/c120235022.lua
+1
-4
script/c120235023.lua
script/c120235023.lua
+1
-4
script/c120235026.lua
script/c120235026.lua
+1
-5
script/c120235027.lua
script/c120235027.lua
+1
-4
script/c120235029.lua
script/c120235029.lua
+1
-4
script/c120238002.lua
script/c120238002.lua
+1
-4
script/c120238003.lua
script/c120238003.lua
+1
-4
script/c120238010.lua
script/c120238010.lua
+1
-4
script/c120238013.lua
script/c120238013.lua
+1
-4
script/c120238036.lua
script/c120238036.lua
+1
-4
script/c120238037.lua
script/c120238037.lua
+1
-4
script/c120238038.lua
script/c120238038.lua
+1
-4
script/c120244004.lua
script/c120244004.lua
+1
-2
script/c120244005.lua
script/c120244005.lua
+1
-5
script/c120244014.lua
script/c120244014.lua
+1
-4
script/c120244015.lua
script/c120244015.lua
+1
-4
script/c120244026.lua
script/c120244026.lua
+1
-4
script/c120246002.lua
script/c120246002.lua
+1
-4
script/c120246048.lua
script/c120246048.lua
+1
-5
script/c120246049.lua
script/c120246049.lua
+1
-4
script/c120246061.lua
script/c120246061.lua
+1
-4
script/c120246062.lua
script/c120246062.lua
+1
-4
script/c120246063.lua
script/c120246063.lua
+1
-5
script/c120246064.lua
script/c120246064.lua
+1
-5
script/c120249013.lua
script/c120249013.lua
+1
-4
script/c120249019.lua
script/c120249019.lua
+1
-5
script/c120249034.lua
script/c120249034.lua
+1
-4
script/c120249035.lua
script/c120249035.lua
+1
-4
script/c120249038.lua
script/c120249038.lua
+1
-2
script/c120249040.lua
script/c120249040.lua
+1
-5
script/c120252005.lua
script/c120252005.lua
+1
-5
script/c120252006.lua
script/c120252006.lua
+1
-4
script/c120252007.lua
script/c120252007.lua
+1
-5
script/c120253008.lua
script/c120253008.lua
+1
-4
script/c120253015.lua
script/c120253015.lua
+1
-5
script/c120253019.lua
script/c120253019.lua
+1
-4
script/c120253024.lua
script/c120253024.lua
+1
-4
script/c120254027.lua
script/c120254027.lua
+1
-4
script/c120254065.lua
script/c120254065.lua
+1
-4
script/c120254077.lua
script/c120254077.lua
+1
-4
script/c120257022.lua
script/c120257022.lua
+1
-4
script/c120260046.lua
script/c120260046.lua
+1
-4
script/c120260047.lua
script/c120260047.lua
+1
-4
script/c120261005.lua
script/c120261005.lua
+1
-4
script/c120261008.lua
script/c120261008.lua
+1
-4
script/c120261011.lua
script/c120261011.lua
+1
-4
script/c120261013.lua
script/c120261013.lua
+1
-5
script/c120261020.lua
script/c120261020.lua
+1
-4
script/c120261026.lua
script/c120261026.lua
+1
-5
script/c120261035.lua
script/c120261035.lua
+1
-4
script/c120261039.lua
script/c120261039.lua
+1
-4
script/c120263009.lua
script/c120263009.lua
+1
-2
script/c120264006.lua
script/c120264006.lua
+1
-5
script/c120264016.lua
script/c120264016.lua
+1
-4
script/c120264022.lua
script/c120264022.lua
+1
-5
script/c120264026.lua
script/c120264026.lua
+1
-5
script/c120264035.lua
script/c120264035.lua
+1
-4
script/c120271026.lua
script/c120271026.lua
+1
-4
script/c120271043.lua
script/c120271043.lua
+1
-5
script/c120271044.lua
script/c120271044.lua
+1
-5
script/c120271061.lua
script/c120271061.lua
+1
-4
script/c120272012.lua
script/c120272012.lua
+1
-4
script/c120272013.lua
script/c120272013.lua
+1
-4
script/c120272014.lua
script/c120272014.lua
+1
-4
script/c120272022.lua
script/c120272022.lua
+1
-4
script/c120272023.lua
script/c120272023.lua
+1
-4
script/c120272026.lua
script/c120272026.lua
+1
-4
script/c120274012.lua
script/c120274012.lua
+1
-4
script/c120274016.lua
script/c120274016.lua
+1
-5
script/c120274041.lua
script/c120274041.lua
+1
-4
script/c120276001.lua
script/c120276001.lua
+1
-4
script/c120277008.lua
script/c120277008.lua
+1
-1
script/c120277026.lua
script/c120277026.lua
+1
-5
script/c120277027.lua
script/c120277027.lua
+1
-5
script/c120277032.lua
script/c120277032.lua
+1
-5
script/c120277035.lua
script/c120277035.lua
+1
-4
script/c120277036.lua
script/c120277036.lua
+1
-4
script/c120278009.lua
script/c120278009.lua
+1
-1
script/c120279007.lua
script/c120279007.lua
+1
-4
script/c120280006.lua
script/c120280006.lua
+1
-5
script/c120280007.lua
script/c120280007.lua
+1
-4
script/c120283001.lua
script/c120283001.lua
+1
-5
script/c120283041.lua
script/c120283041.lua
+1
-4
script/c120283042.lua
script/c120283042.lua
+1
-5
script/c120283043.lua
script/c120283043.lua
+1
-4
script/c120283044.lua
script/c120283044.lua
+1
-4
script/c120283045.lua
script/c120283045.lua
+1
-4
script/c120285002.lua
script/c120285002.lua
+1
-4
script/c120285008.lua
script/c120285008.lua
+1
-4
script/c120285011.lua
script/c120285011.lua
+1
-4
script/c120285012.lua
script/c120285012.lua
+1
-1
script/c120285017.lua
script/c120285017.lua
+1
-4
script/c120285019.lua
script/c120285019.lua
+1
-4
script/c120285020.lua
script/c120285020.lua
+1
-4
script/c120285021.lua
script/c120285021.lua
+1
-4
script/c120285025.lua
script/c120285025.lua
+1
-5
script/c120285026.lua
script/c120285026.lua
+1
-5
script/c120285028.lua
script/c120285028.lua
+1
-4
script/c120285029.lua
script/c120285029.lua
+1
-4
script/c120285100.lua
script/c120285100.lua
+1
-5
script/c120286005.lua
script/c120286005.lua
+1
-4
script/c120286006.lua
script/c120286006.lua
+1
-4
script/c120287006.lua
script/c120287006.lua
+1
-5
script/c120287033.lua
script/c120287033.lua
+1
-5
script/c120287066.lua
script/c120287066.lua
+1
-4
script/c120290012.lua
script/c120290012.lua
+1
-5
script/c120290014.lua
script/c120290014.lua
+1
-4
script/c120290017.lua
script/c120290017.lua
+1
-5
script/c120290018.lua
script/c120290018.lua
+1
-4
script/c120290019.lua
script/c120290019.lua
+1
-4
script/c120290020.lua
script/c120290020.lua
+1
-4
script/c120290021.lua
script/c120290021.lua
+1
-5
script/c120290022.lua
script/c120290022.lua
+1
-5
script/c120290025.lua
script/c120290025.lua
+1
-4
script/c120290027.lua
script/c120290027.lua
+1
-4
script/c120290100.lua
script/c120290100.lua
+1
-1
script/c120293032.lua
script/c120293032.lua
+1
-5
script/c120293046.lua
script/c120293046.lua
+1
-5
script/c120293047.lua
script/c120293047.lua
+4
-4
script/c120293048.lua
script/c120293048.lua
+1
-5
script/c120293049.lua
script/c120293049.lua
+1
-4
script/c120293050.lua
script/c120293050.lua
+1
-4
script/c120293052.lua
script/c120293052.lua
+1
-4
script/c120293053.lua
script/c120293053.lua
+1
-4
script/c120293067.lua
script/c120293067.lua
+1
-4
script/c120293070.lua
script/c120293070.lua
+1
-5
script/c120294004.lua
script/c120294004.lua
+1
-5
script/c120294013.lua
script/c120294013.lua
+1
-5
script/c120294014.lua
script/c120294014.lua
+1
-5
script/c120294016.lua
script/c120294016.lua
+1
-5
script/c120294031.lua
script/c120294031.lua
+1
-5
script/c120294037.lua
script/c120294037.lua
+1
-5
No files found.
script/RDBase.lua
View file @
fed371f9
...
...
@@ -33,8 +33,9 @@ EFFECT_NO_COST_SEND_HAND_TO_GRAVE = 120294004 -- 不需要支付"把手卡送去
-- 标记
FLAG_SUMMON_TURN
=
120000011
-- 召唤·特殊召唤的回合被盖放, 不再符合召唤·特殊召唤的回合的条件
FLAG_ATTACK_ANNOUNCED
=
120000012
-- 已经进行了攻击宣言, 不能向怪兽攻击的效果失效
FLAG_ATTACH_EFFECT
=
120000013
-- 通过效果赋予的效果, 不能重复叠加
FLAG_SUMMON_MAIN_PHASE
=
120000012
-- 召唤·特殊召唤的主要阶段
FLAG_ATTACK_ANNOUNCED
=
120000013
-- 已经进行了攻击宣言, 不能向怪兽攻击的效果失效
FLAG_ATTACH_EFFECT
=
120000014
-- 通过效果赋予的效果, 不能重复叠加
FLAG_CANNOT_ATTACK_NEXT_TURN
=
120231059
-- 下个回合不能攻击
FLAG_CANNOT_ATTACK_UNTIL_NEXT_TURN
=
120247006
-- 直到下个回合,不能攻击
FLAG_HAS_DRAW_IN_MAIN_PHASE
=
120261037
-- 已在主要阶段抽卡
...
...
script/RDCondition.lua
View file @
fed371f9
...
...
@@ -13,6 +13,11 @@ end
function
RushDuel
.
IsPreviousMaximumMode
(
card
)
return
card
:
IsType
(
TYPE_MAXIMUM
)
and
card
:
IsSummonType
(
SUMMON_TYPE_MAXIMUM
)
and
card
:
GetPreviousOverlayCountOnField
()
>
0
end
-- 条件: 玩家的主要阶段
function
RushDuel
.
IsMainPhase
(
player
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
Duel
.
GetTurnPlayer
()
==
player
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
end
-- 条件: 这张卡召唤的回合
function
RushDuel
.
IsSummonTurn
(
card
)
return
card
:
IsReason
(
REASON_SUMMON
)
and
card
:
IsStatus
(
STATUS_SUMMON_TURN
)
and
card
:
GetFlagEffect
(
FLAG_SUMMON_TURN
)
~=
0
...
...
@@ -25,6 +30,11 @@ end
function
RushDuel
.
IsSpecialSummonTurn
(
card
)
return
card
:
IsReason
(
REASON_SPSUMMON
)
and
card
:
IsStatus
(
STATUS_SPSUMMON_TURN
)
and
card
:
GetFlagEffect
(
FLAG_SUMMON_TURN
)
~=
0
end
-- 条件: 这张卡召唤·特殊召唤的自己主要阶段
function
RushDuel
.
IsSummonOrSpecialSummonMainPhase
(
card
)
return
card
:
IsReason
(
REASON_SUMMON
+
REASON_SPSUMMON
)
and
card
:
IsStatus
(
STATUS_SUMMON_TURN
+
STATUS_SPSUMMON_TURN
)
and
card
:
GetFlagEffect
(
FLAG_SUMMON_MAIN_PHASE
)
~=
0
end
-- 条件: 处于攻击中
function
RushDuel
.
IsAttacking
(
effect
)
local
player
=
Duel
.
GetTurnPlayer
()
...
...
@@ -341,3 +351,12 @@ end
function
RushDuel
.
GroupAllCount
(
group
,
filter
,
count
,
...
)
return
group
:
GetCount
()
==
count
and
group
:
FilterCount
(
filter
,
nil
,
...
)
==
count
end
-- 通用条件: 这张卡召唤的回合
function
RushDuel
.
ConditionSummonTurn
(
e
)
return
RushDuel
.
IsSummonTurn
(
e
:
GetHandler
())
end
-- 通用条件: 这张卡召唤·特殊召唤的自己主要阶段
function
RushDuel
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
return
RushDuel
.
IsSummonOrSpecialSummonMainPhase
(
e
:
GetHandler
())
end
\ No newline at end of file
script/RDRule.lua
View file @
fed371f9
...
...
@@ -91,11 +91,17 @@ function RushDuel.InitFlag()
local
reg_summon
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
eg
:
ForEach
(
function
(
tc
)
tc
:
RegisterFlagEffect
(
FLAG_SUMMON_TURN
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
HINTMSG_SUMMON_TURN
)
if
RushDuel
.
IsMainPhase
()
then
tc
:
RegisterFlagEffect
(
FLAG_SUMMON_MAIN_PHASE
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_MAIN1
+
PHASE_MAIN2
,
0
,
1
)
end
end
)
end
local
reg_spsummon
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
eg
:
ForEach
(
function
(
tc
)
tc
:
RegisterFlagEffect
(
FLAG_SUMMON_TURN
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
HINTMSG_SPSUMMON_TURN
)
if
RushDuel
.
IsMainPhase
()
then
tc
:
RegisterFlagEffect
(
FLAG_SUMMON_MAIN_PHASE
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_MAIN1
+
PHASE_MAIN2
,
0
,
1
)
end
end
)
end
local
reg_attack
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c120109004.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelAbove
(
7
)
and
c
:
IsRace
(
RACE_FIEND
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
...
...
script/c120109005.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
3
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
script/c120109018.lua
View file @
fed371f9
...
...
@@ -17,8 +17,7 @@ function cm.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
return
RD
.
IsSummonOrSpecialSummonMainPhase
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c120109021.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_DAMAGE
+
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -22,9 +22,6 @@ end
function
cm
.
posfilter
(
c
,
e
,
tp
)
return
c
:
IsAttackPos
()
and
RD
.
IsCanChangePosition
(
c
,
e
,
tp
,
REASON_EFFECT
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
and
Duel
.
IsPlayerCanDiscardDeck
(
1
-
tp
,
2
)
end
...
...
script/c120109022.lua
View file @
fed371f9
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -25,10 +25,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
1
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendHandToDeckTop
(
Card
.
IsAbleToDeckAsCost
,
1
,
1
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
...
...
script/c120109025.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostPayLP
(
1000
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120109029.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
1
-
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
1
-
tp
,
2
)
...
...
script/c120109033.lua
View file @
fed371f9
...
...
@@ -20,9 +20,8 @@ function cm.thfilter(c)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsRace
(
RACE_DRAGON
+
RACE_FIEND
)
and
RD
.
IsDefense
(
c
,
1200
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
confilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
return
g
:
GetSum
(
Card
.
GetLevel
)
>=
10
and
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
)
return
g
:
GetSum
(
Card
.
GetLevel
)
>=
10
and
RD
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120109038.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
(
c
:
IsCode
(
list
[
1
])
or
(
c
:
IsType
(
TYPE_MAXIMUM
)
and
c
:
IsRace
(
RACE_CYBERSE
)))
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
3
end
end
...
...
script/c120109040.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,10 +17,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetBaseAttack
()
>=
100
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c120120029.lua
View file @
fed371f9
...
...
@@ -6,15 +6,12 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Cannot Summon
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostChangeSelfPosition
()
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120130022.lua
View file @
fed371f9
...
...
@@ -8,16 +8,13 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Draw
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
1
)
...
...
script/c120130029.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,10 +18,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevelBelow
(
6
)
and
c
:
IsRace
(
RACE_DINOSAUR
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
...
...
script/c120140017.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
6
)
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120145028.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_AQUA
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120145041.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
dam
=
Duel
.
GetMatchingGroupCount
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
*
300
if
chk
==
0
then
return
dam
>
0
end
...
...
script/c120150022.lua
View file @
fed371f9
...
...
@@ -7,16 +7,12 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_RECOVER
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Draw & Recover
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
ct
)
end
...
...
script/c120151021.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
RD
.
IsDefense
(
c
,
0
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
...
...
script/c120151035.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
...
...
script/c120155031.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,10 +19,6 @@ end
function
cm
.
posfilter
(
c
,
e
,
tp
)
return
c
:
IsPosition
(
POS_FACEDOWN_DEFENSE
)
and
RD
.
IsCanChangePosition
(
c
,
e
,
tp
,
REASON_EFFECT
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120155032.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,10 +16,6 @@ end
function
cm
.
desfilter
(
c
)
return
c
:
IsPosition
(
POS_FACEDOWN_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
...
...
script/c120170013.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeckBottom
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
script/c120170021.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,9 +18,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_WARRIOR
+
RACE_WINDBEAST
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEDOWN_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendSelfToGrave
()
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
,
e
:
GetHandler
())
>
0
...
...
script/c120170028.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostPayLP
(
500
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120183015.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
7
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
1
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120183023.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostPayLP
(
600
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
...
...
script/c120183025.lua
View file @
fed371f9
...
...
@@ -20,8 +20,7 @@ function cm.desfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
8
)
and
c
:
IsAttackAbove
(
2500
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
return
RD
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_GRAVE
,
0
,
7
,
nil
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c120183027.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
6
)
and
c
:
IsRace
(
RACE_PYRO
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
3
)
...
...
script/c120183028.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_PYRO
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120188006.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -21,9 +21,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
],
list
[
3
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
...
...
script/c120190004.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
3
)
and
c
:
IsRace
(
RACE_FIEND
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120192017.lua
View file @
fed371f9
...
...
@@ -6,15 +6,12 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Confirm Card
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
end
...
...
script/c120199014.lua
View file @
fed371f9
...
...
@@ -7,16 +7,12 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_RECOVER
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Atk Down
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
1
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120203021.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
ct
)
and
Duel
.
IsPlayerCanDiscardDeck
(
1
-
tp
,
ct
)
end
...
...
script/c120208017.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
8
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
...
...
script/c120208019.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetSequence
()
<
5
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
3
,
3
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
desfilter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
...
...
script/c120208022.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
3
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120217037.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120217053.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
7
)
and
c
:
IsRace
(
RACE_AQUA
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToDeckBottom
(
Card
.
IsAbleToDeckAsCost
,
1
,
1
,
false
)
function
cm
.
target
(
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
...
...
script/c120217073.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsAttack
(
0
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120217074.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,9 +18,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
...
...
script/c120222018.lua
View file @
fed371f9
...
...
@@ -8,15 +8,12 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Damage
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
RD
.
TargetDamage
(
1
-
tp
,
400
)
...
...
script/c120222019.lua
View file @
fed371f9
...
...
@@ -8,15 +8,12 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Damage
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
RD
.
TargetDamage
(
1
-
tp
,
300
)
...
...
script/c120222027.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -24,9 +24,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
1
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
tdfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
...
...
script/c120222031.lua
View file @
fed371f9
...
...
@@ -22,7 +22,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
RD
.
SendDeckTopToGraveAndExists
(
tp
,
2
)
and
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
)
then
if
RD
.
SendDeckTopToGraveAndExists
(
tp
,
2
)
and
RD
.
IsSummonOrSpecialSummonMainPhase
(
c
)
then
RD
.
CanSelectAndSpecialSummon
(
aux
.
Stringid
(
m
,
1
),
aux
.
NecroValleyFilter
(
cm
.
spfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
POS_FACEUP
)
end
end
\ No newline at end of file
script/c120222032.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,10 +16,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
5
,
6
,
7
)
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120222033.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -22,10 +22,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostPayLP
(
700
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120222038.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
posfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
RD
.
IsCanChangePosition
(
c
,
e
,
tp
,
REASON_EFFECT
)
and
c
:
IsCanTurnSet
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120223101.lua
View file @
fed371f9
...
...
@@ -7,17 +7,13 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_COIN
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
cm
.
toss_coin
=
true
--Destroy
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
2
)
...
...
script/c120226017.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
4
)
and
c
:
IsRace
(
RACE_PYRO
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120228015.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c120228018.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -24,9 +24,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_PLANT
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120228022.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PSYCHO
)
and
RD
.
IsCanAttachDoubleTribute
(
c
,
cm
.
trival
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
...
...
script/c120228026.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevelBelow
(
2
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostPayLP
(
1000
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120228028.lua
View file @
fed371f9
...
...
@@ -22,8 +22,7 @@ function cm.thfilter(c)
return
c
:
IsCode
(
list
[
2
],
list
[
3
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
return
RD
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
==
3
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c120228031.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TODECK
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
tdfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120228036.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -22,10 +22,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsLocation
(
LOCATION_HAND
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendHandToDeckBottom
(
Card
.
IsAbleToDeckAsCost
,
1
,
1
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120231033.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevel
(
6
)
and
RD
.
IsDefense
(
c
,
500
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120231048.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -22,9 +22,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
3
,
3
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120231054.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
...
...
script/c120231058.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,10 +17,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevel
(
4
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendHandToDeckBottom
(
Card
.
IsAbleToDeckAsCost
,
1
,
1
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120232002.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
7
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
nil
,
1
,
1
-
tp
,
LOCATION_GRAVE
)
...
...
script/c120235007.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120235009.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
4
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsRace
(
RACE_GALAXY
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120235022.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -22,9 +22,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
3
],
list
[
4
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
...
...
script/c120235023.lua
View file @
fed371f9
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
costfilter
(
c
,
e
,
tp
)
return
not
c
:
IsPublic
()
and
c
:
IsCode
(
list
[
1
],
list
[
2
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
script/c120235026.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,10 +17,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120235027.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
m
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120235029.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -24,9 +24,6 @@ end
function
cm
.
eqcheck
(
c
,
ec
)
return
ec
:
CheckEquipTarget
(
c
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
...
...
script/c120238002.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsRace
(
RACE_BEAST
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
RD
.
GetTributeCount
(
e
:
GetHandler
())
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
ct
,
nil
)
end
...
...
script/c120238003.lua
View file @
fed371f9
...
...
@@ -6,15 +6,12 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Cannot Activate
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
1
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120238010.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
RD
.
IsLegendCard
(
c
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeckBottom
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120238013.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
RD
.
IsLegendCard
(
c
)
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
3
end
end
...
...
script/c120238036.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
filter
(
c
)
return
((
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevelBelow
(
4
))
or
c
:
IsType
(
TYPE_EQUIP
))
and
c
:
IsAbleToDeck
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
...
...
script/c120238037.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
RD
.
IsLegendCode
(
c
,
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120238038.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
.
toss_coin
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120244004.lua
View file @
fed371f9
...
...
@@ -20,8 +20,7 @@ function cm.confilter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
list
[
1
],
list
[
2
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
return
RD
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c120244005.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -21,10 +21,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
3
],
list
[
4
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
...
...
script/c120244014.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -23,9 +23,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
5
)
and
RD
.
IsDefense
(
c
,
1000
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
...
...
script/c120244015.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -23,9 +23,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
5
)
and
RD
.
IsDefense
(
c
,
1000
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
1
-
tp
)
>
0
...
...
script/c120244026.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -25,9 +25,6 @@ function cm.max(e,tp,eg,ep,ev,re,r,rp)
local
ct2
=
Duel
.
GetMatchingGroupCount
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
return
math.min
(
ct1
,
ct2
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
cm
.
max
,
Group
.
GetCount
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
...
...
script/c120246002.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120246048.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -23,10 +23,6 @@ end
function
cm
.
posfilter
(
c
,
e
,
tp
)
return
RD
.
IsCanChangePosition
(
c
,
e
,
tp
,
REASON_EFFECT
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120246049.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ function cm.thfilter(c)
return
(
c
:
IsCode
(
list
[
1
])
or
(
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttackBelow
(
500
)))
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120246061.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,9 +21,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
m
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tdfilter
,
tp
,
0
,
LOCATION_GRAVE
,
2
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tdfilter
,
tp
,
0
,
LOCATION_GRAVE
,
nil
)
...
...
script/c120246062.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsLevel
(
2
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAttack
(
500
)
and
RD
.
IsDefense
(
c
,
0
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120246063.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
list
[
1
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120246064.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
list
[
1
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120249013.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsRace
(
RACE_PYRO
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
ct
=
g
:
GetClassCount
(
Card
.
GetRace
)
...
...
script/c120249019.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,10 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
3
)
and
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
2
end
end
...
...
script/c120249034.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
exfilter
(
c
)
return
RD
.
IsLegendCode
(
c
,
list
[
1
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120249035.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -22,9 +22,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120249038.lua
View file @
fed371f9
...
...
@@ -21,8 +21,7 @@ function cm.thfilter(c)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
return
RD
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c120249040.lua
View file @
fed371f9
...
...
@@ -7,16 +7,12 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Confirm
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
end
...
...
script/c120252005.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -26,10 +26,6 @@ function cm.check(g)
return
(
tc1
:
IsRace
(
RACE_DRAGON
)
and
tc2
:
IsCode
(
list
[
1
]))
or
(
tc2
:
IsRace
(
RACE_DRAGON
)
and
tc1
:
IsCode
(
list
[
1
]))
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
3
end
end
...
...
script/c120252006.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
...
...
script/c120252007.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -24,10 +24,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsLevel
(
8
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendMZoneSubToGrave
(
cm
.
costfilter
,
cm
.
costcheck
,
2
,
2
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120253008.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -22,9 +22,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
],
list
[
3
])
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
4
)
end
...
...
script/c120253015.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,10 +21,6 @@ end
function
cm
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120253019.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120253024.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAttack
(
1800
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120254027.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_GALAXY
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
end
end
...
...
script/c120254065.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,9 +21,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
...
...
script/c120254077.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120257022.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_REPTILE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostPayLP
(
300
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
dam
=
Duel
.
GetMatchingGroupCount
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
*
300
...
...
script/c120260046.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -25,9 +25,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120260047.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -22,9 +22,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
...
...
script/c120261005.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120261008.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ cm.trival=RD.ValueDoubleTributeAttrRace(ATTRIBUTE_DARK,RACE_SPELLCASTER)
function
cm
.
exfilter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
...
...
script/c120261011.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_DICE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -22,9 +22,6 @@ end
function
cm
.
tdfilter
(
c
)
return
c
:
IsPosition
(
POS_FACEUP_DEFENSE
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120261013.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,10 +19,6 @@ function cm.thfilter(c)
return
((
c
:
IsLevelAbove
(
7
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsRace
(
RACE_CYBERSE
))
or
c
:
IsCode
(
list
[
1
]))
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120261020.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsLevel
(
5
)
and
c
:
IsRace
(
RACE_GALAXY
)
and
RD
.
IsDefense
(
c
,
1300
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_ATTACK
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
...
...
script/c120261026.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
2
],
list
[
3
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
and
not
c
:
IsCode
(
list
[
1
])
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
3
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120261035.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsFacedown
()
and
c
:
GetSequence
()
<
5
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostChangePosition
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
...
...
script/c120261039.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
exfilter
(
c
)
return
(
c
:
IsLevel
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsRace
(
RACE_CYBERSE
))
or
c
:
IsType
(
TYPE_EQUIP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
RD
.
TargetDamage
(
1
-
tp
,
200
)
...
...
script/c120263009.lua
View file @
fed371f9
...
...
@@ -15,8 +15,7 @@ function cm.initial_effect(c)
end
--Draw
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
return
RD
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
)
<=
1
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c120264006.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,10 +20,6 @@ end
function
cm
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
8
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
script/c120264016.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsLevel
(
7
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttack
(
2500
)
and
RD
.
IsDefense
(
c
,
2000
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120264022.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,10 +17,6 @@ cm.indval=RD.ValueEffectIndesType(0,TYPE_SPELL+TYPE_TRAP)
function
cm
.
exfilter
(
c
)
return
c
:
IsRace
(
RACE_AQUA
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendHandOrFieldToGrave
(
Card
.
IsAbleToGraveAsCost
,
1
,
2
,
true
,
nil
,
nil
,
Group
.
GetCount
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120264026.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120264035.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -28,9 +28,6 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
--Discard Deck
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
3
)
...
...
script/c120271026.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,9 +18,6 @@ function cm.costfilter(c,e,tp)
return
not
c
:
IsPublic
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
RD
.
IsDefense
(
c
,
500
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
...
...
script/c120271043.lua
View file @
fed371f9
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -24,10 +24,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendSelfToGrave
()
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c120271044.lua
View file @
fed371f9
...
...
@@ -9,16 +9,12 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Discard Deck
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
3
)
...
...
script/c120271061.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
exfilter
(
c
)
return
RD
.
IsLegendCard
(
c
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsRace
(
RACE_PYRO
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120272012.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120272013.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120272014.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120272022.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
+
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,9 +18,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsAttack
(
400
)
and
RD
.
IsDefense
(
c
,
1500
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostPayLP
(
500
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
...
...
script/c120272023.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToDeckBottom
(
Card
.
IsAbleToDeckAsCost
,
1
,
1
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120272026.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_RECOVER
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
thfilter
(
c
)
return
not
c
:
IsLevel
(
4
)
and
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAttack
(
0
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostPayLP
(
500
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
3
end
...
...
script/c120274012.lua
View file @
fed371f9
...
...
@@ -6,7 +6,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
c
:
RegisterEffect
(
e1
)
end
--Fusion Summon
...
...
@@ -18,7 +18,4 @@ function cm.spfilter(c)
end
function
cm
.
exfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToDeck
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
\ No newline at end of file
script/c120274016.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
3
end
end
...
...
script/c120274041.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsLevel
(
4
)
and
c
:
IsRace
(
RACE_DINOSAUR
)
and
RD
.
IsDefense
(
c
,
1200
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120276001.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ cm.trival=RD.ValueDoubleTributeAttrRace(ATTRIBUTE_DARK,RACE_SPELLCASTER)
function
cm
.
exfilter
(
c
)
return
c
:
IsLevelBelow
(
9
)
and
c
:
IsAttackAbove
(
100
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
...
...
script/c120277008.lua
View file @
fed371f9
...
...
@@ -26,7 +26,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
RD
.
AttachEffectIndes
(
e
,
c
,
cm
.
indval
,
aux
.
Stringid
(
m
,
2
),
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
local
dam
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
*
400
if
dam
>
0
and
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
)
then
if
dam
>
0
and
RD
.
IsSummonOrSpecialSummonMainPhase
(
c
)
then
RD
.
CanDamage
(
aux
.
Stringid
(
m
,
1
),
tp
,
dam
)
end
end
...
...
script/c120277026.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,10 +21,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
...
...
script/c120277027.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,10 +18,6 @@ function cm.thfilter(c)
return
c
:
IsLevel
(
7
,
8
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_BEAST
)
and
RD
.
IsDefenseAbove
(
c
,
1500
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
Card
.
IsAbleToGraveAsCost
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
...
...
script/c120277032.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -22,10 +22,6 @@ end
function
cm
.
filter
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
lv
-
1
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
RD
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
RD
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
...
...
script/c120277035.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
1
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendSelfToGrave
()
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
...
...
script/c120277036.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
+
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
exfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
RD
.
IsCanChangePosition
(
c
,
e
,
tp
,
REASON_EFFECT
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120278009.lua
View file @
fed371f9
...
...
@@ -24,7 +24,7 @@ function cm.spfilter(c,e,tp)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
and
not
e
:
GetHandler
()
:
IsCode
(
list
[
1
])
return
RD
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
and
not
c
:
IsCode
(
list
[
1
])
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c120279007.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
2
)
and
c
:
IsRace
(
RACE_WINDBEAST
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120280006.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120280007.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
((
c
:
IsAttack
(
1200
)
and
RD
.
IsDefense
(
c
,
1500
))
or
(
c
:
IsAttack
(
1400
)
and
RD
.
IsDefense
(
c
,
1200
)))
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120283001.lua
View file @
fed371f9
...
...
@@ -9,17 +9,13 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Destroy
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostPayLP
(
500
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
script/c120283041.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -25,9 +25,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
GetOriginalLevel
()
==
9
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120283042.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,10 +19,6 @@ function cm.thfilter(c)
return
(
c
:
IsCode
(
list
[
1
])
or
(
c
:
IsLevel
(
9
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAttack
(
2500
)))
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120283043.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,9 +20,6 @@ function cm.spfilter(c,e,tp)
and
c
:
IsAttack
(
1100
)
and
RD
.
IsDefense
(
c
,
500
)))
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120283044.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
(
c
:
IsAttack
(
100
)
or
RD
.
IsDefense
(
c
,
100
))
and
c
:
IsRace
(
RACE_PSYCHO
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120283045.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,9 +21,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120285002.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
Card
.
IsAbleToGraveAsCost
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
...
...
script/c120285008.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ cm.trival=RD.ValueDoubleTributeAttrRace(ATTRIBUTE_EARTH,RACE_MACHINE)
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120285011.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
costfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToGraveAsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendMZoneToGrave
(
cm
.
costfilter
,
1
,
1
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
script/c120285012.lua
View file @
fed371f9
...
...
@@ -29,7 +29,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
RD
.
ChangeCode
(
e
,
c
,
list
[
1
],
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
if
RD
.
IsSummon
Turn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
then
if
RD
.
IsSummon
OrSpecialSummonMainPhase
(
c
)
then
RD
.
CanSelectAndDoAction
(
aux
.
Stringid
(
m
,
1
),
HINTMSG_ATOHAND
,
aux
.
NecroValleyFilter
(
cm
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
,
function
(
g
)
RD
.
SendToHandAndExists
(
g
,
e
,
tp
,
REASON_EFFECT
)
end
)
...
...
script/c120285017.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120285019.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -25,9 +25,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120285020.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120285021.lua
View file @
fed371f9
...
...
@@ -7,15 +7,12 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Level Up
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
Card
.
IsAbleToGraveAsCost
,
1
,
1
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120285025.lua
View file @
fed371f9
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,10 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
3
end
end
...
...
script/c120285026.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,10 +16,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120285028.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevel
(
9
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
3
end
...
...
script/c120285029.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
costfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAbleToGraveAsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendMZoneToGrave
(
cm
.
costfilter
,
1
,
1
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c120285100.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -19,10 +19,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostPayLP
(
500
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
...
...
script/c120286005.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_CONTROL
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -17,9 +17,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsFacedown
()
and
c
:
IsControlerCanBeChanged
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
Card
.
IsAbleToGraveAsCost
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c120286006.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsAbleToDeck
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
2
,
function
(
g
)
return
g
:
FilterCount
(
cm
.
costfilter
,
nil
)
end
)
...
...
script/c120287006.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
list
[
1
])
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
...
...
script/c120287033.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -48,10 +48,6 @@ end
function
cm
.
posfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_RITUAL
)
and
RD
.
IsCanChangePosition
(
c
,
e
,
tp
,
REASON_EFFECT
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c120287066.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,9 +19,6 @@ function cm.filter(c)
return
((
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsRace
(
RACE_WARRIOR
))
or
c
:
IsCode
(
list
[
1
]))
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
end
end
...
...
script/c120290012.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -25,10 +25,6 @@ end
function
cm
.
matfilter
(
c
)
return
not
RD
.
IsMaximumMode
(
c
)
and
c
:
GetBaseDefense
()
==
1200
and
c
:
IsFusionAttribute
(
ATTRIBUTE_WIND
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
end
cm
.
cost
=
RD
.
CostSendHandToDeckBottom
(
Card
.
IsAbleToDeckAsCost
,
1
,
1
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120290014.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -20,9 +20,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsType
(
TYPE_TRAP
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
...
...
script/c120290017.lua
View file @
fed371f9
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -30,10 +30,6 @@ end
function
cm
.
posfilter
(
c
,
e
,
tp
)
return
RD
.
IsCanChangePosition
(
c
,
e
,
tp
,
REASON_EFFECT
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
))
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120290018.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
Card
.
IsAbleToGraveAsCost
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
...
...
script/c120290019.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
costfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c120290020.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -19,9 +19,6 @@ end
function
cm
.
costfilter
(
c
,
e
,
tp
)
return
not
c
:
IsPublic
()
and
c
:
IsCode
(
list
[
1
],
list
[
2
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
4
)
end
...
...
script/c120290021.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,10 +17,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120290022.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,10 +17,6 @@ function cm.thfilter(c)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttack
(
1200
)
and
RD
.
IsDefense
(
c
,
900
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120290025.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -18,9 +18,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
cm
.
cost
=
RD
.
CostSendSelfToGrave
()
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
...
...
script/c120290027.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevel
(
9
)
and
c
:
IsRace
(
RACE_FIEND
)
and
RD
.
IsDefense
(
c
,
2000
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
end
end
...
...
script/c120290100.lua
View file @
fed371f9
...
...
@@ -16,7 +16,7 @@ end
--Multiple Attack
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
)
return
RD
.
ConditionSummonOrSpecialSummonMainPhase
(
e
)
and
Duel
.
IsAbleToEnterBP
()
and
RD
.
IsCanAttachExtraAttack
(
c
,
1
)
end
cm
.
cost
=
RD
.
CostPayLP
(
500
)
...
...
script/c120293032.lua
View file @
fed371f9
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,10 +20,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120293046.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,10 +21,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsRace
(
RACE_GALAXY
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToDeck
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
...
...
script/c120293047.lua
View file @
fed371f9
...
...
@@ -52,10 +52,10 @@ function cm.checkfilter(c,tp)
and
c
:
IsReason
(
REASON_EFFECT
)
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
cm
.
checkfilter
,
1
,
nil
,
0
)
then
Duel
.
RegisterFlagEffect
(
0
,
20293047
,
RESET_PHASE
+
PHASE_
END
,
0
,
1
)
if
RD
.
IsMainPhase
(
0
)
and
eg
:
IsExists
(
cm
.
checkfilter
,
1
,
nil
,
0
)
then
Duel
.
RegisterFlagEffect
(
0
,
20293047
,
RESET_PHASE
+
PHASE_
MAIN1
+
PHASE_MAIN2
,
0
,
1
)
end
if
eg
:
IsExists
(
cm
.
checkfilter
,
1
,
nil
,
1
)
then
Duel
.
RegisterFlagEffect
(
1
,
20293047
,
RESET_PHASE
+
PHASE_
END
,
0
,
1
)
if
RD
.
IsMainPhase
(
1
)
and
eg
:
IsExists
(
cm
.
checkfilter
,
1
,
nil
,
1
)
then
Duel
.
RegisterFlagEffect
(
1
,
20293047
,
RESET_PHASE
+
PHASE_
MAIN1
+
PHASE_MAIN2
,
0
,
1
)
end
end
\ No newline at end of file
script/c120293048.lua
View file @
fed371f9
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
c
:
RegisterEffect
(
e1
)
end
--Special Summon Procedure
...
...
@@ -24,8 +24,4 @@ function cm.matfilter(c)
end
function
cm
.
spfilter
(
c
)
return
c
:
IsRace
(
RACE_GALAXY
)
and
(
RD
.
IsDefense
(
c
,
1900
)
or
RD
.
IsDefense
(
c
,
2600
))
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
\ No newline at end of file
script/c120293049.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,9 +17,6 @@ function cm.spfilter(c,e,tp)
return
c
:
IsLevelAbove
(
6
)
and
c
:
IsRace
(
RACE_GALAXY
)
and
c
:
IsAttack
(
900
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
script/c120293050.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
posfilter
(
c
,
e
,
tp
)
return
RD
.
IsCanChangePosition
(
c
,
e
,
tp
,
REASON_EFFECT
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
...
...
script/c120293052.lua
View file @
fed371f9
...
...
@@ -7,15 +7,12 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Discard Deck
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120293053.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,9 +16,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
6
)
and
c
:
IsRace
(
RACE_GALAXY
)
and
c
:
IsAttack
(
900
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
3
end
end
...
...
script/c120293067.lua
View file @
fed371f9
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
conditio
n
)
e1
:
SetCondition
(
RD
.
ConditionSummonTur
n
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,9 +21,6 @@ function cm.thfilter(c)
return
RD
.
IsLegendCard
(
c
)
and
c
:
IsLevel
(
7
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
RD
.
IsDefense
(
c
,
300
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RD
.
IsSummonTurn
(
e
:
GetHandler
())
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120293070.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120294004.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,10 +18,6 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120294013.lua
View file @
fed371f9
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,10 +17,6 @@ end
function
cm
.
setfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsSSetable
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120294014.lua
View file @
fed371f9
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
@@ -26,10 +26,6 @@ end
function
cm
.
costcheck
(
g
,
e
,
tp
)
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
cm
.
cost
=
RD
.
CostSendMZoneSubToGrave
(
cm
.
costfilter
,
cm
.
costcheck
,
2
,
2
,
false
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
e
:
IsCostChecked
()
or
Duel
.
GetMZoneCount
(
tp
)
>
0
)
...
...
script/c120294016.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,10 +20,6 @@ function cm.setfilter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
(
true
)
and
(
c
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_SZONE
)
>
0
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
2
)
...
...
script/c120294031.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -17,10 +17,6 @@ function cm.thfilter(c)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsLevelAbove
(
7
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
RD
.
IsDefense
(
c
,
800
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
...
script/c120294037.lua
View file @
fed371f9
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCondition
(
RD
.
ConditionSummonOrSpecialSummonMainPhase
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,10 +16,6 @@ end
function
cm
.
exfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsLevel
(
3
,
4
)
and
c
:
IsAttackBelow
(
1500
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
RD
.
IsSummonTurn
(
c
)
or
RD
.
IsSpecialSummonTurn
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
3
)
...
...
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