Commit 57c8e2f8 authored by salix5's avatar salix5

banished monsters

'banished monsters' implicitly means 'face-up banished monsters'.
parent c1cf25e4
...@@ -18,11 +18,14 @@ function c82579942.initial_effect(c) ...@@ -18,11 +18,14 @@ function c82579942.initial_effect(c)
e2:SetValue(c82579942.valcon) e2:SetValue(c82579942.valcon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c82579942.spfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT)
end
function c82579942.spcon(e,c) function c82579942.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_REMOVED,0,3,nil,ATTRIBUTE_LIGHT) and Duel.IsExistingMatchingCard(c82579942.spfilter,tp,LOCATION_REMOVED,0,3,nil)
end end
function c82579942.valcon(e,re,r,rp) function c82579942.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 return bit.band(r,REASON_BATTLE)~=0
......
...@@ -28,11 +28,14 @@ function c91349449.initial_effect(c) ...@@ -28,11 +28,14 @@ function c91349449.initial_effect(c)
e3:SetOperation(c91349449.rmop) e3:SetOperation(c91349449.rmop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c91349449.spfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT)
end
function c91349449.spcon(e,c) function c91349449.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_REMOVED,0,3,nil,ATTRIBUTE_LIGHT) and Duel.IsExistingMatchingCard(c91349449.spfilter,tp,LOCATION_REMOVED,0,3,nil)
end end
function c91349449.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c91349449.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 end if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 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