a small effect i need help with :
You cannot activate Spell/Trap Cards that are Set, also you cannot Set Spell/Trap Cards from your hand
, except with a card effect.
How do I add the "Except with a card effect" to its script ? Do I need a condition function; if so, how should it look like?
--cannot sset
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_FIELD)
e12:SetCode(EFFECT_CANNOT_SSET)
e12:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e12:SetRange(LOCATION_SZONE)
e12:SetTargetRange(LOCATION_SZONE,0)
e12:SetTarget(c70000.distg)
c:RegisterEffect(e12)
function c70000.distg(e,c)
return c:IsLocation(LOCATION_HAND)
end
Thanks in advance!