- AI should announce multikicker value for cards like Bloodhusk Ritualist to work correctly.

This commit is contained in:
Agetian
2017-06-22 09:15:20 +00:00
parent a8b401f22c
commit 379273e2b4

View File

@@ -1047,7 +1047,7 @@ public class ComputerUtilMana {
final int multiplicator = Math.max(cost.getXcounter(), 1);
manaToAdd = extraMana * multiplicator;
} else {
// For Count$xPaid set PayX in the AFs then use that here
// For Count$xPrestrictionaid set PayX in the AFs then use that here
// Else calculate it as appropriate.
final String xSvar = card.getSVar("X").startsWith("Count$xPaid") ? "PayX" : "X";
if (!sa.getSVar(xSvar).isEmpty() || card.hasSVar(xSvar)) {
@@ -1076,6 +1076,7 @@ public class ComputerUtilMana {
for (int i = 0; i < timesMultikicked; i++) {
cost.addManaCost(mkCost);
}
sa.setSVar("Multikicker", String.valueOf(timesMultikicked));
}
if (test && sa.isSpell()) {