mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixing Colorless costs so they can't be paid by Colored mana for Humans (This may prevent AI from paying Colorless costs)
This commit is contained in:
@@ -124,7 +124,7 @@ public abstract class InputPayMana extends InputSyncronizedBase {
|
||||
}
|
||||
|
||||
byte colorCanUse = 0;
|
||||
for (final byte color : MagicColor.WUBRG) {
|
||||
for (final byte color : MagicColor.WUBRGC) {
|
||||
if (manaCost.isAnyPartPayableWith(color, player.getManaPool())) {
|
||||
colorCanUse |= color;
|
||||
}
|
||||
@@ -179,7 +179,7 @@ public abstract class InputPayMana extends InputSyncronizedBase {
|
||||
byte colorCanUse = 0;
|
||||
byte colorNeeded = 0;
|
||||
|
||||
for (final byte color : MagicColor.WUBRG) {
|
||||
for (final byte color : MagicColor.WUBRGC) {
|
||||
if (manaCost.isAnyPartPayableWith(color, player.getManaPool())) { colorCanUse |= color; }
|
||||
if (manaCost.needsColor(color, player.getManaPool())) { colorNeeded |= color; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user