Merge branch 'fixpay' into 'master'

Fix playSpellAbilityWithoutPayingManaCost not checking amount modifiers

Closes #1816

See merge request core-developers/forge!4656
This commit is contained in:
Anthony Calosa
2021-05-05 03:53:16 +00:00

View File

@@ -280,7 +280,7 @@ public class ComputerUtil {
SpellAbility newSA = sa.copyWithNoManaCost();
newSA.setActivatingPlayer(ai);
if (!CostPayment.canPayAdditionalCosts(newSA.getPayCosts(), newSA)) {
if (!CostPayment.canPayAdditionalCosts(newSA.getPayCosts(), newSA) || !ComputerUtilMana.payManaCost(ai, newSA)) {
return false;
}