Streamline logic so canPlay always before canPay (#8234)

This commit is contained in:
tool4ever
2025-07-29 09:35:18 +02:00
committed by GitHub
parent 7428b7420a
commit f5e96bc756
4 changed files with 20 additions and 43 deletions

View File

@@ -47,11 +47,9 @@ public class InputPayManaOfCostPayment extends InputPayMana {
if (manaCost.payPhyrexian()) {
saPaidFor.setSpendPhyrexianMana(true);
this.phyLifeToLose += 2;
} else {
if (player.hasKeyword("PayLifeInsteadOf:B") && manaCost.hasAnyKind(ManaAtom.BLACK)) {
manaCost.decreaseShard(ManaCostShard.BLACK, 1);
this.phyLifeToLose += 2;
}
} else if (player.hasKeyword("PayLifeInsteadOf:B") && manaCost.hasAnyKind(ManaAtom.BLACK)) {
manaCost.decreaseShard(ManaCostShard.BLACK, 1);
this.phyLifeToLose += 2;
}
}