NostalgiaX
Member Title : Novice Duelist Posts : 13 Join date : 2014-09-01 Age : 31 Location : United States
| Subject: Cannot be Summoned/Set Wed Jan 14, 2015 9:09 pm | |
| I'm not sure if I'm doing this right... Okay, I'm 99.9% sure I'm not doing this right, since it's not working and I'm asking for help. The monster effect is "Cannot be Summoned/Set while you control a non-Spellcaster-Type monster." But I can't get it to work properly. It's still allowing all summons. - Code:
-
function c780001.initial_effect(c) --Cannot be Summoned if non-Spellcaster exists local e=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SUMMON) e1:SetRange(LOCATION_HAND) e1:SetCondition(c780001.sumcon) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) c:RegisterEffect(e2) local e3=e1:Clone() e3:SetCode(EFFECT_CANNOT_FLIP_SUMMON) c:RegisterEffect(e3) local e4=e1:Clone() e4:SetCode(EFFECT_CANNOT_MSET) c:RegisterEffect(e4) end - Code:
-
function c780001.sumfilter(c) return c:IsFaceup() and c:GetRace()~=RACE_SPELLCASTER end function c780001.sumcon(e) return Duel.IsExistingMatchingCard(c780001.sumfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) end |
|