Merge branch 'mana-payment-fix' into 'master'

Fix AI/auto payment for the {C} shard

Closes #1517

See merge request core-developers/forge!3018
This commit is contained in:
Michael Kamensky
2020-07-21 15:34:58 +00:00

View File

@@ -354,7 +354,7 @@ public class ManaPool extends ManaConversionMatrix implements Iterable<Mana> {
byte line = getPossibleColorUses(color);
for(byte outColor : ManaAtom.MANATYPES) {
if ((line & outColor) != 0 && shard.canBePaidWithManaOfColor(outColor)) {
if ((line & outColor) != 0 && shard.canBePaidWithManaOfColor(color)) {
return true;
}
}