Bestow ability - fixed that it could be used with other alternative costs

This commit is contained in:
Oleg Agafonov 2023-09-17 15:03:16 +04:00
parent 0bb837cbe5
commit 5f15e962da

View file

@ -435,6 +435,7 @@ public abstract class AbilityImpl implements Ability {
case TRANSFORMED:
case DISTURB:
case MORE_THAN_MEETS_THE_EYE:
case BESTOW:
// from Snapcaster Mage:
// If you cast a spell from a graveyard using its flashback ability, you can't pay other alternative costs
// (such as that of Foil). (2018-12-07)
@ -444,10 +445,11 @@ public abstract class AbilityImpl implements Ability {
canUseAdditionalCost = true;
break;
case NORMAL:
default:
canUseAlternativeCost = true;
canUseAdditionalCost = true;
break;
default:
throw new IllegalArgumentException("Unknown ability cast mode: " + ((SpellAbility) this).getSpellAbilityCastMode());
}
}