mirror of
https://github.com/correl/mage.git
synced 2025-01-11 11:05:23 +00: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
|
@ -674,7 +674,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean playMana(ManaCost unpaid, String promptText, Game game) {
|
||||
public boolean playMana(Ability ability, ManaCost unpaid, String promptText, Game game) {
|
||||
payManaMode = true;
|
||||
boolean result = playManaHandling(unpaid, promptText, game);
|
||||
payManaMode = false;
|
||||
|
|
|
@ -1826,8 +1826,8 @@ public class TestPlayer implements Player {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean playMana(ManaCost unpaid, String promptText, Game game) {
|
||||
return computerPlayer.playMana(unpaid, promptText, game);
|
||||
public boolean playMana(Ability ability, ManaCost unpaid, String promptText, Game game) {
|
||||
return computerPlayer.playMana(ability, unpaid, promptText, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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…
Reference in a new issue