mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Fixed a bug that made it possible to select any color of mana from the mana pool when the X mana cost was supposed to be restricted to specific color(s).
This commit is contained in:
@@ -91,7 +91,8 @@ public class InputPayManaX extends InputPayMana {
|
||||
|
||||
@Override
|
||||
public void selectManaPool(String color) {
|
||||
this.manaCost = InputPayManaCostUtil.activateManaAbility(color, sa, this.manaCost);
|
||||
this.manaCost = InputPayManaCostUtil.activateManaAbility(color, sa,
|
||||
this.colorX.isEmpty() ? this.manaCost : new ManaCost(this.colorX));
|
||||
if (this.manaCost.isPaid()) {
|
||||
if (!this.colorsPaid.contains(this.manaCost.getColorsPaid())) {
|
||||
this.colorsPaid += this.manaCost.getColorsPaid();
|
||||
|
||||
Reference in New Issue
Block a user