client/Topic(href,list[])
if(list["CardB"])
var/CardPath = "/obj/Cards/Base/[list["CardB"]]"
var/obj/Cards/A = new CardPath
if(findtext(usr.Deck, "[list["CardB"]]"))
usr << output("<b><font color = red>Error -</b> You can not have more then one of the same card in your deck at one time!","Default.Chat")
else
usr << output("<B><Font color = green>Deck Editor -</b> [A] has been added to your deck.","Default.Chat")
usr.Deck += A
A.suffix = "<font color = [A.FColor]><b>[A.HealthPoints]/[A.Type]"
A.Owner = usr.key
A.TurnFront()
Problem description:
I'm trying to make it to where they can't have more then one card in there one deck, but everytime I run it, it seems to get past the findtext and add the same card everytime without an errior. I figure I'm using the wrong thing to do this, please help?