mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
* Fixed handling of Phyrexian mana.
This commit is contained in:
parent
0c44857e80
commit
b80e27f3b3
10 changed files with 359 additions and 370 deletions
|
|
@ -683,7 +683,11 @@ public class HumanPlayer extends PlayerImpl {
|
|||
|
||||
protected boolean playManaHandling(ManaCost unpaid, String promptText, Game game) {
|
||||
updateGameStatePriority("playMana", game);
|
||||
game.firePlayManaEvent(playerId, "Pay " + promptText);
|
||||
Map<String, Serializable> options = new HashMap<>();
|
||||
if (unpaid.getText().contains("P}")) {
|
||||
options.put(Constants.Option.SPECIAL_BUTTON, (Serializable) "Pay 2 life");
|
||||
}
|
||||
game.firePlayManaEvent(playerId, "Pay " + promptText, options);
|
||||
waitForResponse(game);
|
||||
if (!this.isInGame()) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue