- Fixed Sanity Grinding and the relevant AI logic.

This commit is contained in:
Agetian
2016-10-22 13:39:43 +00:00
parent 04a22531cb
commit a491851a97
2 changed files with 10 additions and 4 deletions

View File

@@ -106,9 +106,15 @@ public class MillAi extends SpellAbilityAi {
// if it would mill none, try other one
if (numCards <= 0) {
if ((sa.getParam("NumCards").equals("X") || sa.getParam("NumCards").equals("Z"))
&& source.getSVar("X").startsWith("Count$xPaid")) {
// Spell is PayX based
if ((sa.getParam("NumCards").equals("X") || sa.getParam("NumCards").equals("Z")))
{
if (source.getSVar("X").startsWith("Count$xPaid")) {
// Spell is PayX based
} else if (source.getSVar("X").startsWith("Remembered$ChromaSource")) {
// Cards like Sanity Grinding
} else {
continue;
}
} else {
continue;
}