mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
* Fixes to spend any mana to pay handling-
This commit is contained in:
parent
e9667b430b
commit
55966f3056
5 changed files with 6 additions and 6 deletions
|
|
@ -219,7 +219,7 @@ public abstract class ManaCostImpl extends CostImpl implements ManaCost {
|
|||
while (!isPaid()) {
|
||||
ManaCost unpaid = this.getUnpaid();
|
||||
String promptText = ManaUtil.addSpecialManaPayAbilities(ability, game, unpaid);
|
||||
if (player.playMana(unpaid, promptText, game)) {
|
||||
if (player.playMana(ability, unpaid, promptText, game)) {
|
||||
assignPayment(game, ability, player.getManaPool());
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ public class ManaCostsImpl<T extends ManaCost> extends ArrayList<T> implements M
|
|||
while (!isPaid()) {
|
||||
ManaCost unpaid = this.getUnpaid();
|
||||
String promptText = ManaUtil.addSpecialManaPayAbilities(ability, game, unpaid);
|
||||
if (player.playMana(unpaid, promptText, game)) {
|
||||
if (player.playMana(ability, unpaid, promptText, game)) {
|
||||
assignPayment(game, ability, player.getManaPool());
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -445,7 +445,7 @@ public interface Player extends MageItem, Copyable<Player> {
|
|||
|
||||
boolean choosePile(Outcome outcome, String message, List<? extends Card> pile1, List<? extends Card> pile2, Game game);
|
||||
|
||||
boolean playMana(ManaCost unpaid, String promptText, Game game);
|
||||
boolean playMana(Ability ability, ManaCost unpaid, String promptText, Game game);
|
||||
|
||||
/**
|
||||
* Moves the cards from cards to the bottom of the players library.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue