mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Fix xPaid for Token as drawback
This commit is contained in:
@@ -95,7 +95,7 @@ public class TokenAi extends SpellAbilityAi {
|
|||||||
if (sa.getSVar("X").equals("Count$xPaid")) {
|
if (sa.getSVar("X").equals("Count$xPaid")) {
|
||||||
// Set PayX here to maximum value.
|
// Set PayX here to maximum value.
|
||||||
x = ComputerUtilCost.getMaxXValue(sa, ai);
|
x = ComputerUtilCost.getMaxXValue(sa, ai);
|
||||||
sa.setXManaCostPaid(x);
|
sa.getRootAbility().setXManaCostPaid(x);
|
||||||
}
|
}
|
||||||
if (x <= 0) {
|
if (x <= 0) {
|
||||||
return false; // 0 tokens or 0 toughness token(s)
|
return false; // 0 tokens or 0 toughness token(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user