Commit 8b2d057c authored by 想象力很好的毛虫's avatar 想象力很好的毛虫 Committed by GitHub

Fix The blazing MARS (#2261)

parent 0658af02
...@@ -54,16 +54,16 @@ end ...@@ -54,16 +54,16 @@ end
function c15033525.damcon(e,tp,eg,ep,ev,re,r,rp) 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.ncostfilter(c) function c15033525.stfilter(c)
return not c:IsAbleToGraveAsCost() return c:GetOriginalType()&(TYPE_SPELL+TYPE_TRAP)==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())
if chk==0 then return g:GetCount()>0 and not g:IsExists(c15033525.ncostfilter,1,nil) end local mg=g:Filter(c15033525.stfilter,nil)
if chk==0 then return #mg>0 and g:IsExists(Card.IsAbleToGraveAsCost,#g,nil) end
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE) e:SetLabel(mg:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE))
e:SetLabel(ct)
end end
function c15033525.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c15033525.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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