Commit e784954a authored by GuGu's avatar GuGu

Update c20254.lua

parent af5ae32c
Pipeline #33296 passed with stage
in 1 minute and 29 seconds
......@@ -29,7 +29,7 @@ function c20254.initial_effect(c)
c:RegisterEffect(e3)
end
function c20254.spfilter(c)
return c:IsSetCard(0x201)
return c:IsSetCard(0x201) and c:IsType(TYPE_EQUIP) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
end
function c20254.spcon(e,c)
if c==nil then return true end
......@@ -38,7 +38,7 @@ function c20254.spcon(e,c)
return ct%2==0
end
function c20254.spfilter2(c)
return c:IsSetCard(0x201) and c:IsAbleToRemoveAsCost()
return c:IsSetCard(0x201) and c:IsAbleToRemoveAsCost() and c:IsType(TYPE_EQUIP) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
end
function c20254.spcon2(e,c)
if c==nil then return true end
......@@ -48,8 +48,9 @@ function c20254.spcon2(e,c)
end
function c20254.spop(e,tp,eg,ep,ev,re,r,rp,c)
local tp=c:GetControler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c20254.spfilter2,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST)
Duel.Remove(g,POS_FACEUP,REASON_SPSUMMON)
end
function c20254.val(e,c)
return c:GetEquipCount()*500
......
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