added a new method to use countershroud to create a globel shroud by targetchooser...auto=countershroud(-1/-1)creature|mybattlefield...like this....

This commit is contained in:
omegablast2002@yahoo.com
2012-03-20 12:21:03 +00:00
parent 2ddf1d36da
commit 48e5608803
6 changed files with 20 additions and 10 deletions

View File

@@ -2330,7 +2330,13 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
return NULL;
}
}
MTGAbility * a = NEW ACounterShroud(observer, id, card, target,counter);
TargetChooser * csTc = NULL;
if(splitCounterShroud[2].size() > 1)
{
TargetChooserFactory af(card->getObserver());
csTc = af.createTargetChooser(splitCounterShroud[2],card);
}
MTGAbility * a = NEW ACounterShroud(observer, id, card, target,csTc,counter);
return a;
}
//use counters to track by counters to track an efect by counter name.