Commit 005382b4 authored by 未闻皂名's avatar 未闻皂名

2021/9/11 【条件】带有回到卡组的cost,可以选择融合怪兽

parent bfd7abec
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.spfilter(c,e,tp)
return c:IsLevelBelow(5) and c:IsRace(RACE_SPELLCASTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsRace(RACE_WARRIOR)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.desfilter(c)
return c:IsFaceup() and c:IsLevelBelow(6)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=Duel.GetAttackTarget()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.spfilter(c,e,tp)
return c:IsLevel(7) and c:IsRace(RACE_WARRIOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.tdfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsRace(RACE_FISH)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=Duel.GetAttackTarget()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.costfilter,tp,LOCATION_GRAVE,0,nil)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.confilter,1,nil,1-tp)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.costfilter,tp,LOCATION_GRAVE,0,nil)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,c)
end
function cm.filter(c)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsLevel(7,8)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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.IsAbleToDeckOrExtraAsCost,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.IsAbleToDeckOrExtraAsCost,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.ConfirmCards(1-tp,g)
Duel.SendtoDeck(g,nil,1,REASON_COST)
end
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,c)
end
function cm.thfilter(c)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.costcheck(g)
return g:GetClassCount(Card.GetRace)==1
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.thfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.spfilter(c,e,tp)
return c:IsLevelAbove(7) and c:IsRace(RACE_WARRIOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.spfilter(c,e,tp)
return c:IsLevelBelow(7) and c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.posfilter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsLevelBelow(8) and RushDuel.IsHasDefense(c) and c:IsCanTurnSet()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.thfilter(c)
return c:IsType(TYPE_NORMAL) and c:IsRace(RACE_PSYCHO) and c:IsAbleToHand()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.posfilter(c)
return c:IsAttackPos() and c:IsCanChangePosition() and RushDuel.IsHasDefense(c)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.spfilter(c,e,tp)
return c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsLevelBelow(8)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_FIRE)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_PYRO)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsLevelAbove(1)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=Duel.GetAttackTarget()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and not c:IsRace(RACE_SPELLCASTER)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.tdfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsRace(RACE_CYBERSE)
......
......@@ -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.IsAbleToDeckOrExtraAsCost,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.IsAbleToDeckOrExtraAsCost,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.ConfirmCards(1-tp,g)
Duel.SendtoDeck(g,nil,1,REASON_COST)
end
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
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
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.exfilter(c)
return c:IsType(TYPE_SPELL) and c:IsLocation(LOCATION_GRAVE)
......
......@@ -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:IsAbleToDeckOrExtraAsCost()
end
function cm.exfilter(c)
return RushDuel.IsLegendCode(c,list[3])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment