From 59f5851e731556ca682ed9878c625bc185352ed3 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 10 Mar 2018 12:39:44 +0100 Subject: [PATCH] Fixed a problem to pay costs for e.g. triggering abilities while casting a spell. --- .../src/mage/player/human/HumanPlayer.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java b/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java index 349d39a8594..3f3a20f0d8c 100644 --- a/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java +++ b/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java @@ -1111,11 +1111,13 @@ public class HumanPlayer extends PlayerImpl { if (object == null) { return; } - Spell spell = game.getStack().getSpell(abilityToCast.getSourceId()); - if (spell != null && !spell.isResolving() - && spell.isDoneActivatingManaAbilities()) { - game.informPlayer(this, "You can no longer use activated mana abilities to pay for the current spell. Cancel and recast the spell and activate mana abilities first."); - return; + if (AbilityType.SPELL.equals(abilityToCast.getAbilityType())) { + Spell spell = game.getStack().getSpell(abilityToCast.getSourceId()); + if (spell != null && !spell.isResolving() + && spell.isDoneActivatingManaAbilities()) { + game.informPlayer(this, "You can no longer use activated mana abilities to pay for the current spell. Cancel and recast the spell and activate mana abilities first."); + return; + } } Zone zone = game.getState().getZone(object.getId()); if (zone != null) {