mirror of
https://github.com/magefree/mage.git
synced 2026-01-19 01:39:58 -08:00
Added the possibility to adjust Choices before using the choices in activated abilities
This commit is contained in:
parent
b64e1658e9
commit
4ec874f8c7
6 changed files with 18 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue