- AI fix for Monstrosity.

This commit is contained in:
Sloth
2013-09-18 18:35:30 +00:00
parent 0ca16e5996
commit 24e320237f

View File

@@ -73,8 +73,12 @@ public class CountersPutAi extends SpellAbilityAi {
}
}
if (sa.hasParam("Monstrosity") && source.isMonstrous()) {
return false;
}
// TODO handle proper calculation of X values based on Cost
int amount = AbilityUtils.calculateAmount(sa.getSourceCard(), amountStr, sa);
int amount = AbilityUtils.calculateAmount(source, amountStr, sa);
if (amountStr.equals("X") && source.getSVar(amountStr).equals("Count$xPaid")) {
// Set PayX here to maximum value.