mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 09:19:56 -08:00
Replace OnlyOpponentCanActivate by MayActivate
This commit is contained in:
parent
e1ffa37af9
commit
4aeece6764
3 changed files with 35 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue