When you cast this spell - fixed that it required double cost for cards with alternative costs like Evoke (example: Nulldrifter, #12843)

This commit is contained in:
Oleg Agafonov 2024-12-14 21:17:24 +04:00
parent 38b54beb54
commit 4bce1e0a9a
2 changed files with 167 additions and 1 deletions

View file

@ -466,10 +466,16 @@ public abstract class AbilityImpl implements Ability {
}
/**
* @return true if choices for the activation were made (can be to activate with the regular cost)
* @return false to stop activation process, e.g. on wrong data/choices
*/
@Override
public boolean activateAlternateOrAdditionalCosts(MageObject sourceObject, Set<MageIdentifier> allowedIdentifiers, boolean noMana, Player controller, Game game) {
// alternative or additional costs supported for spells or activated abilities only
if (!this.getAbilityType().isActivatedAbility()
&& !this.getAbilityType().isPlayCardAbility()) {
return true;
}
boolean canUseAlternativeCost = true;
boolean canUseAdditionalCost = true;