mirror of
https://github.com/magefree/mage.git
synced 2026-01-17 17:06:45 -08:00
* Fixed a bug in table expired check. Changed expired check. Some fixed for table / tournament state handling.
This commit is contained in:
parent
8b331eefce
commit
6f9a6ccabf
2 changed files with 24 additions and 39 deletions
|
|
@ -296,10 +296,8 @@ public abstract class AbilityImpl implements Ability {
|
|||
if (getTargets().size() > 0 && getTargets().chooseTargets(getEffects().get(0).getOutcome(), this.controllerId, this, game) == false) {
|
||||
if (variableManaCost != null || announceString != null) {
|
||||
game.informPlayer(controller, new StringBuilder(sourceObject != null ? sourceObject.getLogName(): "").append(": no valid targets with this value of X").toString());
|
||||
} else {
|
||||
logger.debug("activate failed - target");
|
||||
}
|
||||
return false;
|
||||
return false; // when activation of ability is canceled during target selection
|
||||
}
|
||||
} // end modes
|
||||
|
||||
|
|
@ -344,8 +342,7 @@ public abstract class AbilityImpl implements Ability {
|
|||
|
||||
//20100716 - 601.2f (noMana is not used here, because mana costs were cleared for this ability before adding additional costs and applying cost modification effects)
|
||||
if (!manaCostsToPay.pay(this, game, sourceId, activatorId, false)) {
|
||||
logger.debug("activate failed - mana");
|
||||
return false;
|
||||
return false; // cancel during mana payment
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue