implement [MH3] Primal Prayers ; use choice panel for cast mode choice ; allow some restricted "as thought as it had flash" to work only on matching alternative cast. (#12420)

This commit is contained in:
Susucre 2024-07-30 15:47:39 +02:00 committed by GitHub
parent 503e842b51
commit c0eab28626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 1105 additions and 596 deletions

View file

@ -388,8 +388,8 @@ public class StackAbility extends StackObjectImpl implements Ability {
}
@Override
public boolean activate(Game game, boolean noMana) {
return ability.activate(game, noMana);
public boolean activate(Game game, Set<MageIdentifier> allowedIdentifiers, boolean noMana) {
return ability.activate(game, allowedIdentifiers, noMana);
}
@Override
@ -584,7 +584,7 @@ public class StackAbility extends StackObjectImpl implements Ability {
}
@Override
public boolean activateAlternateOrAdditionalCosts(MageObject sourceObject, boolean noMana, Player controller, Game game) {
public boolean activateAlternateOrAdditionalCosts(MageObject sourceObject, Set<MageIdentifier> allowedIdentifiers, boolean noMana, Player controller, Game game) {
throw new UnsupportedOperationException("Not supported yet.");
}