mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Fix payment fails with TapsForMana triggers
This commit is contained in:
@@ -656,7 +656,7 @@ public class ComputerUtilMana {
|
|||||||
ManaPool.refundMana(manaSpentToPay, ai, sa);
|
ManaPool.refundMana(manaSpentToPay, ai, sa);
|
||||||
|
|
||||||
return manaSources;
|
return manaSources;
|
||||||
} // getManaSourcesToPayCost()
|
}
|
||||||
|
|
||||||
private static boolean payManaCost(final ManaCostBeingPaid cost, final SpellAbility sa, final Player ai, final boolean test, boolean checkPlayable, boolean effect) {
|
private static boolean payManaCost(final ManaCostBeingPaid cost, final SpellAbility sa, final Player ai, final boolean test, boolean checkPlayable, boolean effect) {
|
||||||
AiCardMemory.clearMemorySet(ai, MemorySet.PAYS_TAP_COST);
|
AiCardMemory.clearMemorySet(ai, MemorySet.PAYS_TAP_COST);
|
||||||
@@ -710,7 +710,7 @@ public class ComputerUtilMana {
|
|||||||
}
|
}
|
||||||
manapool.applyCardMatrix(pay);
|
manapool.applyCardMatrix(pay);
|
||||||
|
|
||||||
for (byte color : MagicColor.WUBRGC) {
|
for (byte color : ManaAtom.MANATYPES) {
|
||||||
if (manapool.tryPayCostWithColor(color, sa, cost)) {
|
if (manapool.tryPayCostWithColor(color, sa, cost)) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
@@ -886,7 +886,7 @@ public class ComputerUtilMana {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} // payManaCost()
|
}
|
||||||
|
|
||||||
private static void resetPayment(List<SpellAbility> payments) {
|
private static void resetPayment(List<SpellAbility> payments) {
|
||||||
for (SpellAbility sa : payments) {
|
for (SpellAbility sa : payments) {
|
||||||
|
|||||||
Reference in New Issue
Block a user