This commit is contained in:
BetaSteward 2010-10-28 03:19:26 +00:00
parent 78e640487b
commit 3a784f59ee
88 changed files with 2521 additions and 447 deletions

View file

@ -147,13 +147,13 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
logger.fine("activate failed - target");
return false;
}
game.getObject(sourceId).adjustCosts(this, game);
if (!useAlternativeCost(game)) {
if (!manaCosts.pay(game, sourceId, controllerId, noMana)) {
logger.fine("activate failed - mana");
return false;
}
}
game.getObject(sourceId).adjustCosts(this, game);
if (!costs.pay(game, sourceId, controllerId, noMana)) {
logger.fine("activate failed - non mana costs");
return false;