Support showing generic mana in prompt if color can be paid with any color

This commit is contained in:
drdev
2016-03-14 05:41:47 +00:00
parent 81f0bbc633
commit 389681b62a
5 changed files with 25 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ public class InputPayManaOfCostPayment extends InputPayMana {
@Override
protected String getMessage() {
final String displayMana = manaCost.toString(false);
final String displayMana = manaCost.toString(false, player.getManaPool());
final StringBuilder msg = new StringBuilder();
if (messagePrefix != null) {

View File

@@ -119,7 +119,7 @@ public class InputPayManaSimple extends InputPayMana {
*/
@Override
protected String getMessage() {
final StringBuilder msg = new StringBuilder("Pay Mana Cost: " + this.manaCost.toString());
final StringBuilder msg = new StringBuilder("Pay Mana Cost: " + this.manaCost.toString(false, player.getManaPool()));
if (this.phyLifeToLose > 0) {
msg.append(" (");
msg.append(this.phyLifeToLose);