a place for all your custom card needs you can post scripts pics and request for card to be made also please donate to the funding for a new server made for custom card duels
 
HomePortalLatest imagesSearchRegisterLog in

Share
 

 Cannot be Summoned/Set

View previous topic View next topic Go down 
AuthorMessage
NostalgiaX

NostalgiaX


Member Title : Novice Duelist
Posts : 13
Join date : 2014-09-01
Age : 31
Location : United States

Cannot be Summoned/Set Empty
PostSubject: Cannot be Summoned/Set   Cannot be Summoned/Set Icon_minitimeWed 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
Back to top Go down
 

Cannot be Summoned/Set

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Custom Card Ruling and Bugs-