obj
card
Click()
if(usr.Battle== 1)
switch(input("What Do You Want To do?")in list("Summon","Set"))
if("Summon")
var/obj/A = input("What card do you want to Summon?")in usr.pcards
var/obj/card2/kmcard/KM=new(usr.loc)
if(usr.side=="L")
KM.x+=2
KM.y-=2
KM.y+=rand(1,4)
KM.card=A
KM.owner=usr
else
KM.x-=2
KM.y-=2
KM.y+=rand(1,4)
KM.card=A
KM.owner=usr
if(A.Magic!=1&&A.Trap!=1)
usr.FieldCards.Add(A)
if("Set")
var/obj/a = input("What card do you want to Set?")in usr.pcards
var/obj/card2/kmcard/KM=new(usr.loc)
var/mob/M = usr.opponent
if(usr.side=="L")
KM.x+=2
KM.y-=2
KM.y+=rand(1,4)
KM.card=a
KM.owner=usr
else
KM.x-=2
KM.y-=2
KM.y+=rand(1,4)
KM.card=a
KM.owner=usr
if(a.Magic!=1&&a.Trap!=1)
usr.FieldCards.Add(a)
usr <<"You put your card in Dmode!"
M <<"[usr] plays his card in Dmode!"
a.Dmode = 1
Problem description:When you duel it wont let you click a card in usr.pcards.....I dont know why