mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- AI should announce multikicker value for cards like Bloodhusk Ritualist to work correctly.
This commit is contained in:
@@ -1047,7 +1047,7 @@ public class ComputerUtilMana {
|
|||||||
final int multiplicator = Math.max(cost.getXcounter(), 1);
|
final int multiplicator = Math.max(cost.getXcounter(), 1);
|
||||||
manaToAdd = extraMana * multiplicator;
|
manaToAdd = extraMana * multiplicator;
|
||||||
} else {
|
} 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.
|
// Else calculate it as appropriate.
|
||||||
final String xSvar = card.getSVar("X").startsWith("Count$xPaid") ? "PayX" : "X";
|
final String xSvar = card.getSVar("X").startsWith("Count$xPaid") ? "PayX" : "X";
|
||||||
if (!sa.getSVar(xSvar).isEmpty() || card.hasSVar(xSvar)) {
|
if (!sa.getSVar(xSvar).isEmpty() || card.hasSVar(xSvar)) {
|
||||||
@@ -1076,6 +1076,7 @@ public class ComputerUtilMana {
|
|||||||
for (int i = 0; i < timesMultikicked; i++) {
|
for (int i = 0; i < timesMultikicked; i++) {
|
||||||
cost.addManaCost(mkCost);
|
cost.addManaCost(mkCost);
|
||||||
}
|
}
|
||||||
|
sa.setSVar("Multikicker", String.valueOf(timesMultikicked));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (test && sa.isSpell()) {
|
if (test && sa.isSpell()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user