first part of a series of commits, this one adds "and((" support to the various card removel abilities, tweaks targetedplayer targetchooser, and adds the following number word variables...
counter{}
so you can get a count of a certain counter on a card
the next consist of parts using the same targetchooser method as type:
power:
toughness:
convertedcost:
followed by ---
highest:
lowest:
followed by targetchooser
blah:mybattlefield
so if i want highest converted cost of creatures i control..
convertedcost:highest:creature:mybattlefield
also added an internal ability to reuse and display flying text with a string passed to it.
This commit is contained in:
@@ -29,14 +29,11 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
||||
found = s.find("targetedplayer");
|
||||
if (found == 0)
|
||||
{
|
||||
if(card && card->backupTargets.size())
|
||||
{
|
||||
Player * pTarget = dynamic_cast<Player*>(card->backupTargets[0]);
|
||||
Player * pTarget = card->playerTarget;
|
||||
if (ability)
|
||||
pTarget = dynamic_cast<Player*>(ability->target);
|
||||
if(pTarget)
|
||||
return NEW PlayerTargetChooser(observer, card, 1, pTarget);
|
||||
}
|
||||
};
|
||||
|
||||
found = s.find("opponent");
|
||||
|
||||
Reference in New Issue
Block a user