Commit b0e10423 authored by 聖園ミカ's avatar 聖園ミカ 🐟

man!

parent f0760300
...@@ -31,9 +31,12 @@ function cm.initial_effect(c) ...@@ -31,9 +31,12 @@ function cm.initial_effect(c)
e2:SetOperation(cm.ssop) e2:SetOperation(cm.ssop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.sppfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_FAIRY)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0) local ct=Duel.GetMatchingGroupCount(cm.sppfilter,tp,LOCATION_MZONE,0,nil)
return g:GetCount()>0 and g:FilterCount(cm.cfilter,nil)==g:GetCount() return ct>0 and ct==Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)
end end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) 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