It is currently 10 May 2025, 03:52
   
Text Size

Question about "Choose Two Cards"

Moderator: CCGHQ Admins

Question about "Choose Two Cards"

Postby Xana » 16 Aug 2012, 14:31

Hey Again

Having just coded Agonizing Memories, i stumbled upon a question that somehow google couldn't help me with.

The card says to choose two cards from target players hand, what happens if that player only has one card in his hand, is he still a valid target and only one card is chosen automatically or is he no longer a legal target?

Well not so much a programming question, but still relevant as to how to code the card, my current implementation automatically selects the remaining card and puts it on top of the library when there is less than two cards in target players hand, but i'm not sure as to whether this is the correct behavior?
Xana
 
Posts: 13
Joined: 15 Jan 2010, 18:59
Has thanked: 2 times
Been thanked: 2 times

Re: Question about "Choose Two Cards"

Postby thefiremind » 16 Aug 2012, 14:46

The spell targets the player and not the cards, so as long as the player can be targetted by the spell (i.e. the player doesn't have shroud/hexproof/protection from black), you can play Agonizing Memories even if the hand is empty or with just one card.

Hex, for example, can't be cast if there aren't enough creatures because it targets them.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 16 guests


Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 16 guests

Login Form