Fixed a problem to pay costs for e.g. triggering abilities while casting a spell.

This commit is contained in:
LevelX2 2018-03-10 12:39:44 +01:00
parent a2b0e5a39c
commit 59f5851e73

View file

@ -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) {