Commit 4fbe6da4 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12031013.lua

parent d37a7b94
......@@ -60,7 +60,7 @@ end
function cm.spfilter(c,e,tp)
local re=c:GetReasonEffect()
return c:IsReason(REASON_COST) and re and re:IsHasType(0x7e0) and re:IsActiveType(TYPE_MONSTER)
and re:GetHandler():IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToRemoveAsCost()
and re:GetHandler():IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToRemoveAsCost() and c:IsType(TYPE_MONSTER)
end
function cm.spcon(e,c)
if c==nil then return true end
......@@ -86,4 +86,4 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if bc:IsRelateToBattle() then
Duel.SendtoGrave(bc,REASON_RULE+REASON_EFFECT)
end
end
\ No newline at end of file
end
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