Fixed a problem to pay costs for e.g. triggering abilities while casting a spell.
@@ -1111,12 +1111,14 @@ public class HumanPlayer extends PlayerImpl {
if (object == null) {
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) {
LinkedHashMap<UUID, ActivatedManaAbilityImpl> useableAbilities = getUseableManaAbilities(object, zone, game);
