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
4
Issues
4
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
MyCard
ygopro-rush-duel
Commits
005382b4
Commit
005382b4
authored
Sep 11, 2021
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2021/9/11 【条件】带有回到卡组的cost,可以选择融合怪兽
parent
bfd7abec
Changes
54
Show whitespace changes
Inline
Side-by-side
Showing
54 changed files
with
56 additions
and
56 deletions
+56
-56
script/c120105013.lua
script/c120105013.lua
+1
-1
script/c120112006.lua
script/c120112006.lua
+1
-1
script/c120120022.lua
script/c120120022.lua
+1
-1
script/c120120038.lua
script/c120120038.lua
+1
-1
script/c120135002.lua
script/c120135002.lua
+1
-1
script/c120140004.lua
script/c120140004.lua
+1
-1
script/c120140024.lua
script/c120140024.lua
+1
-1
script/c120140026.lua
script/c120140026.lua
+1
-1
script/c120140030.lua
script/c120140030.lua
+1
-1
script/c120140040.lua
script/c120140040.lua
+1
-1
script/c120145017.lua
script/c120145017.lua
+1
-1
script/c120145022.lua
script/c120145022.lua
+1
-1
script/c120145023.lua
script/c120145023.lua
+1
-1
script/c120145038.lua
script/c120145038.lua
+1
-1
script/c120145039.lua
script/c120145039.lua
+1
-1
script/c120145043.lua
script/c120145043.lua
+1
-1
script/c120145056.lua
script/c120145056.lua
+1
-1
script/c120150005.lua
script/c120150005.lua
+1
-1
script/c120150008.lua
script/c120150008.lua
+1
-1
script/c120150017.lua
script/c120150017.lua
+1
-1
script/c120151001.lua
script/c120151001.lua
+1
-1
script/c120151020.lua
script/c120151020.lua
+1
-1
script/c120151024.lua
script/c120151024.lua
+1
-1
script/c120151026.lua
script/c120151026.lua
+1
-1
script/c120151036.lua
script/c120151036.lua
+1
-1
script/c120151040.lua
script/c120151040.lua
+1
-1
script/c120155016.lua
script/c120155016.lua
+1
-1
script/c120155023.lua
script/c120155023.lua
+2
-2
script/c120155034.lua
script/c120155034.lua
+1
-1
script/c120155040.lua
script/c120155040.lua
+1
-1
script/c120170013.lua
script/c120170013.lua
+1
-1
script/c120170022.lua
script/c120170022.lua
+1
-1
script/c120170031.lua
script/c120170031.lua
+1
-1
script/c120170035.lua
script/c120170035.lua
+1
-1
script/c120170040.lua
script/c120170040.lua
+1
-1
script/c120170043.lua
script/c120170043.lua
+1
-1
script/c120170057.lua
script/c120170057.lua
+1
-1
script/c120170058.lua
script/c120170058.lua
+1
-1
script/c120181011.lua
script/c120181011.lua
+1
-1
script/c120183041.lua
script/c120183041.lua
+1
-1
script/c120183049.lua
script/c120183049.lua
+1
-1
script/c120183052.lua
script/c120183052.lua
+1
-1
script/c120183053.lua
script/c120183053.lua
+1
-1
script/c120183061.lua
script/c120183061.lua
+1
-1
script/c120186010.lua
script/c120186010.lua
+1
-1
script/c120189012.lua
script/c120189012.lua
+1
-1
script/c120191005.lua
script/c120191005.lua
+1
-1
script/c120196003.lua
script/c120196003.lua
+2
-2
script/c120196024.lua
script/c120196024.lua
+1
-1
script/c120196027.lua
script/c120196027.lua
+1
-1
script/c120196028.lua
script/c120196028.lua
+1
-1
script/c120196029.lua
script/c120196029.lua
+1
-1
script/c120196036.lua
script/c120196036.lua
+1
-1
script/c120196037.lua
script/c120196037.lua
+1
-1
No files found.
script/c120105013.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
...
...
script/c120112006.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Special Summon
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
+
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_WARRIOR
+
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
6
)
and
c
:
IsRace
(
RACE_WARRIOR
+
RACE_SPELLCASTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c120120022.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Special Summon
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
5
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c120120038.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
...
...
script/c120135002.lua
View file @
005382b4
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
end
--Extra Tribute
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
...
...
script/c120140004.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Cannot Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsAttack
(
0
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsAttack
(
0
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_WARRIOR
)
...
...
script/c120140024.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
1
)
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
1
)
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
6
)
...
...
script/c120140026.lua
View file @
005382b4
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
1
)
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
1
)
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
...
...
script/c120140030.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Direct Attack
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120140040.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
Duel
.
GetAttackTarget
()
...
...
script/c120145017.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Special Summon
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
+
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_WARRIOR
+
RACE_SPELLCASTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
7
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c120145022.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--To Deck
function
cm
.
costfilter
(
c
)
return
c
:
IsLevelBelow
(
5
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsLevelBelow
(
5
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
tdfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
...
...
script/c120145023.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Destroy
function
cm
.
costfilter
(
c
)
return
c
:
IsLevelBelow
(
5
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsLevelBelow
(
5
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120145038.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Confirm
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120145039.lua
View file @
005382b4
...
...
@@ -19,7 +19,7 @@ function cm.confilter(c)
return
c
:
IsFaceup
()
and
c
:
IsLevel
(
7
)
and
c
:
IsRace
(
RACE_FISH
)
end
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
)
...
...
script/c120145043.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
...
...
script/c120145056.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsDefenseAbove
(
1000
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsDefenseAbove
(
1000
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
Duel
.
GetAttackTarget
()
...
...
script/c120150005.lua
View file @
005382b4
...
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsCode
(
list
[
1
])
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
...
...
script/c120150008.lua
View file @
005382b4
...
...
@@ -19,7 +19,7 @@ function cm.confilter(c,tp)
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsFaceup
()
and
c
:
IsAttackAbove
(
1500
)
end
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
confilter
,
1
,
nil
,
1
-
tp
)
...
...
script/c120150017.lua
View file @
005382b4
...
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
end
--Draw
function
cm
.
costfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
],
list
[
3
])
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsCode
(
list
[
1
],
list
[
2
],
list
[
3
])
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
...
...
script/c120151001.lua
View file @
005382b4
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
end
--Damage
function
cm
.
costfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
function
cm
.
filter
(
c
)
...
...
script/c120151020.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
...
...
script/c120151024.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Atk Up
function
cm
.
costfilter
(
c
)
return
c
:
IsAttack
(
0
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsAttack
(
0
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120151026.lua
View file @
005382b4
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
end
--Special Summon
function
cm
.
costfilter
(
c
)
return
c
:
IsAttack
(
0
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsAttack
(
0
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelAbove
(
5
)
and
c
:
IsAttack
(
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
...
...
script/c120151036.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevel
(
7
,
8
)
...
...
script/c120151040.lua
View file @
005382b4
...
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
end
--Draw
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c120155016.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Atk Up
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
nil
)
end
...
...
script/c120155023.lua
View file @
005382b4
...
...
@@ -19,9 +19,9 @@ function cm.desfilter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeckAsCost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
OrExtra
AsCost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeckAsCost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
OrExtra
AsCost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
1
,
REASON_COST
)
end
...
...
script/c120155034.lua
View file @
005382b4
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
end
--To Hand
function
cm
.
costfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_PYRO
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PYRO
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
function
cm
.
thfilter
(
c
)
...
...
script/c120155040.lua
View file @
005382b4
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
costcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetRace
)
==
1
...
...
script/c120170013.lua
View file @
005382b4
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
end
--To Hand
function
cm
.
costfilter
(
c
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
script/c120170022.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Special Summon
function
cm
.
costfilter
(
c
)
return
c
:
IsLevelAbove
(
7
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsLevelAbove
(
7
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelAbove
(
7
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c120170031.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Special Summon
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
7
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c120170035.lua
View file @
005382b4
...
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
end
--Position
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
posfilter
(
c
)
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsLevelBelow
(
8
)
and
RushDuel
.
IsHasDefense
(
c
)
and
c
:
IsCanTurnSet
()
...
...
script/c120170040.lua
View file @
005382b4
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToHand
()
...
...
script/c120170043.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsDefenseBelow
(
100
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsDefenseBelow
(
100
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
nil
)
end
...
...
script/c120170057.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
posfilter
(
c
)
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
...
...
script/c120170058.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
...
...
script/c120181011.lua
View file @
005382b4
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
end
--Extra Tribute
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
...
...
script/c120183041.lua
View file @
005382b4
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevelBelow
(
2
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevelBelow
(
2
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
8
)
...
...
script/c120183049.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_BEAST
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_BEAST
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
...
...
script/c120183052.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PYRO
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PYRO
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsRace
(
RACE_PYRO
)
...
...
script/c120183053.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
1
)
...
...
script/c120183061.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
Duel
.
GetAttackTarget
()
...
...
script/c120186010.lua
View file @
005382b4
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
end
--Damage
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsRace
(
RACE_SPELLCASTER
)
...
...
script/c120189012.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--To Deck
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
tdfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
...
...
script/c120191005.lua
View file @
005382b4
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Atk Down
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERSE
)
...
...
script/c120196003.lua
View file @
005382b4
...
...
@@ -15,9 +15,9 @@ function cm.initial_effect(c)
end
--Select Effect
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeckAsCost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
OrExtra
AsCost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeckAsCost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
OrExtra
AsCost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
1
,
REASON_COST
)
end
...
...
script/c120196024.lua
View file @
005382b4
...
...
@@ -19,7 +19,7 @@ function cm.initial_effect(c)
end
--Destroy
function
cm
.
costfilter
(
c
)
return
c
:
IsCode
(
list
[
3
],
list
[
4
])
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsCode
(
list
[
3
],
list
[
4
])
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
...
...
script/c120196027.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
...
...
script/c120196028.lua
View file @
005382b4
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
...
...
script/c120196029.lua
View file @
005382b4
...
...
@@ -20,7 +20,7 @@ function cm.initial_effect(c)
end
--Damage
function
cm
.
costfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c120196036.lua
View file @
005382b4
...
...
@@ -19,7 +19,7 @@ function cm.initial_effect(c)
end
--Discard Deck
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_WYRM
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_WYRM
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
exfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
...
...
script/c120196037.lua
View file @
005382b4
...
...
@@ -18,7 +18,7 @@ function cm.initial_effect(c)
end
--Atk Up
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
c
:
IsAbleToDeck
OrExtra
AsCost
()
end
function
cm
.
exfilter
(
c
)
return
RushDuel
.
IsLegendCode
(
c
,
list
[
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