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
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | .
 

 Cannot be Summoned/Set

View previous topic View next topic Go down 
AuthorMessage
NostalgiaX

avatar


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

PostSubject: 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
Back to top Go down
View user profile
 

Cannot be Summoned/Set

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

 Similar topics

-
» Can only be special summoned by..
» [MB01] Exodia the Summoned God
» Skill Drain
» About Trap Eater
» Book of Moon vs. FLIP

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