Commit 45e3774a authored by Tachibana's avatar Tachibana

E

parent 5dc71103
......@@ -85,14 +85,14 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return ph==PHASE_DAMAGE and (c==Duel.GetAttacker() or c==Duel.GetAttackTarget())
and not Duel.IsDamageCalculated()
end
function cm.cfilter(c)
function cm.rmfilter(c)
return c:IsAbleToRemoveAsCost() and c:IsType(TYPE_MONSTER)
end
function cm.cfilter2(c)
return c:IsType(TYPE_MONSTER)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetMatchingGroup(cm.cfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
local rg=Duel.GetMatchingGroup(cm.rmfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
local rg2=Duel.GetMatchingGroup(cm.cfilter2,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
if chk==0 then return e:GetHandler():GetFlagEffect(m)==0
and rg:GetCount()==rg2:GetCount() 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