From 9107b2d8d42896083cf8c312fc5b464d7641a5bc Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sun, 27 Mar 2011 20:19:33 +0000 Subject: [PATCH] it was reported to me that "|hand)" and "|library)" targetchoosing were only allowing you to target things in YOUR hand/library... added parsing to correct this bug, cards which state "card from target players hand" should be coded "target(*|hand)" which allows targetting of any cards which are in a hand not just your hand. |myhand) |opponenthand) |hand) self explainitory..... --- projects/mtg/src/TargetChooser.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/projects/mtg/src/TargetChooser.cpp b/projects/mtg/src/TargetChooser.cpp index 9352dd8f0..19f3ee78b 100644 --- a/projects/mtg/src/TargetChooser.cpp +++ b/projects/mtg/src/TargetChooser.cpp @@ -109,6 +109,16 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta zones[nbzones++] = MTGGameZone::MY_BATTLEFIELD; zones[nbzones++] = MTGGameZone::OPPONENT_BATTLEFIELD; } + else if (zoneName.compare("hand") == 0) + { + zones[nbzones++] = MTGGameZone::MY_HAND; + zones[nbzones++] = MTGGameZone::OPPONENT_HAND; + } + else if (zoneName.compare("library") == 0) + { + zones[nbzones++] = MTGGameZone::MY_LIBRARY; + zones[nbzones++] = MTGGameZone::OPPONENT_LIBRARY; + } else if (zoneName.compare("nonbattlezone") == 0) { zones[nbzones++] = MTGGameZone::MY_GRAVEYARD;