- 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:
Sol
2016-01-14 21:26:27 +00:00
parent c9e3cc425d
commit cd5ee18525
5 changed files with 17 additions and 11 deletions

View File

@@ -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; }
}