Avoid being unnecessarily prompted when tapping multi-color creature for convoke

This commit is contained in:
drdev
2015-09-26 15:01:45 +00:00
parent e9552ec17f
commit bd9ee4f24d
2 changed files with 16 additions and 3 deletions

View File

@@ -580,4 +580,12 @@ public class ManaCostBeingPaid {
}
return 0;
}
public final byte getUnpaidColors() {
byte result = 0;
for (ManaCostShard s : unpaidShards.keySet()) {
result |= s.getColorMask();
}
return result;
}
}