mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed Sanity Grinding and the relevant AI logic.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user