Commit a47b4c75 authored by Tachibana's avatar Tachibana

eme

parent 2d4ca8ff
Pipeline #7134 passed with stages
in 37 minutes and 24 seconds
......@@ -61,20 +61,20 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function cm.mttg(e,c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() and c:IsRace(RACE_FAIRY)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function cm.mtval(e,c)
if not c then return false end
return true
return c:IsRace(RACE_FAIRY)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.rmc,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,re) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.rmc,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,re:GetHandler():GetAttribute()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,cm.rmc,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,re:GetHandler():GetAttribute())
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)&LOCATION_MZONE~=0 and Duel.IsChainNegatable(ev)
return re:IsActiveType(TYPE_MONSTER) and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_MZONE and Duel.IsChainNegatable(ev)
end
function cm.rmc(c,att)
return c:IsAbleToRemoveAsCost() and c:IsAttribute(att)
......
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