Commit 893ff074 authored by Chen Bill's avatar Chen Bill

fix The blazing MARS

parent 8b2d057c
...@@ -55,13 +55,13 @@ function c15033525.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,13 +55,13 @@ function c15033525.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 return Duel.GetCurrentPhase()==PHASE_MAIN1
end end
function c15033525.stfilter(c) function c15033525.stfilter(c)
return c:GetOriginalType()&(TYPE_SPELL+TYPE_TRAP)==0 return c:GetOriginalType()&(TYPE_MONSTER)~=0
end end
function c15033525.damcost(e,tp,eg,ep,ev,re,r,rp,chk) function c15033525.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0) local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
g:RemoveCard(e:GetHandler()) g:RemoveCard(e:GetHandler())
local mg=g:Filter(c15033525.stfilter,nil) local mg=g:Filter(c15033525.stfilter,nil)
if chk==0 then return #mg>0 and g:IsExists(Card.IsAbleToGraveAsCost,#g,nil) end if chk==0 then return #mg>0 and not g:IsExists(aux.NOT(Card.IsAbleToGraveAsCost),1,nil) end
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
e:SetLabel(mg:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE)) e:SetLabel(mg:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE))
end 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