game: fixed wrong commander colors with large color identity (#12429)

This commit is contained in:
Alexander Novotny 2024-06-07 15:46:32 -04:00 committed by GitHub
parent a071593d47
commit 892ccddd35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -872,7 +872,7 @@ public abstract class AbstractCommander extends Constructed {
int thisMaxPower = 0; int thisMaxPower = 0;
String cn = commander.getName().toLowerCase(Locale.ENGLISH); String cn = commander.getName().toLowerCase(Locale.ENGLISH);
if (color == null) { if (color == null) {
color = commander.getColor(null); color = commander.getColor(null).copy();
} else { } else {
color = color.union(commander.getColor(null)); color = color.union(commander.getColor(null));
} }