Replace OnlyOpponentCanActivate by MayActivate

This commit is contained in:
Plopman 2013-04-10 22:13:08 +02:00
parent e1ffa37af9
commit 4aeece6764
3 changed files with 35 additions and 14 deletions

View file

@ -268,21 +268,23 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
//20101001 - 601.2e
game.getContinuousEffects().costModification(this, game);
UUID activatorId = controllerId;
if ((this instanceof ActivatedAbilityImpl) && ((ActivatedAbilityImpl)this).getActivatorId()!= null) {
activatorId = ((ActivatedAbilityImpl)this).getActivatorId();
}
if (!useAlternativeCost(game)) {
//20100716 - 601.2f
if (!manaCostsToPay.pay(this, game, sourceId, controllerId, noMana)) {
if (!manaCostsToPay.pay(this, game, sourceId, activatorId, noMana)) {
logger.debug("activate failed - mana");
return false;
}
}
//20100716 - 601.2g
UUID activatorId = controllerId;
if ((this instanceof ActivatedAbilityImpl) && ((ActivatedAbilityImpl)this).getActivatorId()!= null) {
activatorId = ((ActivatedAbilityImpl)this).getActivatorId();
}
if (!costs.pay(this, game, sourceId, activatorId, noMana)) {
logger.debug("activate failed - non mana costs");
return false;