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.....
This commit is contained in:
@@ -109,6 +109,16 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
|||||||
zones[nbzones++] = MTGGameZone::MY_BATTLEFIELD;
|
zones[nbzones++] = MTGGameZone::MY_BATTLEFIELD;
|
||||||
zones[nbzones++] = MTGGameZone::OPPONENT_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)
|
else if (zoneName.compare("nonbattlezone") == 0)
|
||||||
{
|
{
|
||||||
zones[nbzones++] = MTGGameZone::MY_GRAVEYARD;
|
zones[nbzones++] = MTGGameZone::MY_GRAVEYARD;
|
||||||
|
|||||||
Reference in New Issue
Block a user