Added the possibility to adjust Choices before using the choices in activated abilities

This commit is contained in:
LevelX2 2012-09-24 07:53:42 +02:00
parent b64e1658e9
commit 4ec874f8c7
6 changed files with 18 additions and 1 deletions

View file

@ -159,11 +159,15 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
if (!modes.choose(game, this))
return false;
//20100716 - 601.2b
Card card = game.getCard(sourceId);
if (card != null) {
card.adjustChoices(this, game);
}
if (getChoices().size() > 0 && getChoices().choose(game, this) == false) {
logger.debug("activate failed - choice");
return false;
}
Card card = game.getCard(sourceId);
if (card != null) {
card.adjustTargets(this, game);
}