mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fix issue where paying 2/Hybrid mana costs breaks the second hybrid mana before finishes paying the first one
This commit is contained in:
@@ -413,12 +413,13 @@ public class ManaCostBeingPaid {
|
|||||||
|
|
||||||
private static int getPayPriority(final ManaCostShard bill, final byte paymentColor) {
|
private static int getPayPriority(final ManaCostShard bill, final byte paymentColor) {
|
||||||
if (bill == ManaCostShard.GENERIC) {
|
if (bill == ManaCostShard.GENERIC) {
|
||||||
return 0;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bill.isMonoColor()) {
|
if (bill.isMonoColor()) {
|
||||||
if (bill.isOr2Generic()) {
|
if (bill.isOr2Generic()) {
|
||||||
return !ColorSet.fromMask(bill.getColorMask() & paymentColor).isColorless() ? 9 : 4;
|
// The generic portion of a 2/Colored mana, should be lower priority than generic mana
|
||||||
|
return !ColorSet.fromMask(bill.getColorMask() & paymentColor).isColorless() ? 9 : 1;
|
||||||
}
|
}
|
||||||
if (!bill.isPhyrexian()) {
|
if (!bill.isPhyrexian()) {
|
||||||
return 10;
|
return 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user