hello guys, someone can help me fixing the below effect?
Effect: Destroy all monsters you control other than "Ghostrick" monsters.
this is my currently effect.
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_FIELD)
e7:SetRange(LOCATION_MZONE)
e7:SetCode(EFFECT_SELF_DESTROY)
e7:SetTarget(aux.TargetBoolFunction(c5982.sftg))
c:RegisterEffect(e7)
function c5982.sftg(e,c)
return not c:IsSetCard(0x8d) and (c:IsFaceup() or c:IsFacedown())
end
this currently effect doesn't work. even if I control monster that is not Ghostrick.
how can fix this?