- 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 it would mill none, try other one
if (numCards <= 0) { if (numCards <= 0) {
if ((sa.getParam("NumCards").equals("X") || sa.getParam("NumCards").equals("Z")) if ((sa.getParam("NumCards").equals("X") || sa.getParam("NumCards").equals("Z")))
&& source.getSVar("X").startsWith("Count$xPaid")) { {
if (source.getSVar("X").startsWith("Count$xPaid")) {
// Spell is PayX based // Spell is PayX based
} else if (source.getSVar("X").startsWith("Remembered$ChromaSource")) {
// Cards like Sanity Grinding
} else {
continue;
}
} else { } else {
continue; continue;
} }

View File

@@ -2,7 +2,7 @@ Name:Sanity Grinding
ManaCost:U U U ManaCost:U U U
Types:Sorcery Types:Sorcery
A:SP$ Dig | Cost$ U U U | DigNum$ 10 | Reveal$ True | ChangeNum$ 0 | RememberRevealed$ True | SubAbility$ MillTargeted | SpellDescription$ Chroma - Reveal the top ten cards of your library. For each blue mana symbol in the mana costs of the revealed cards, target opponent puts the top card of his or her library into his or her graveyard. Then put the cards you revealed this way on the bottom of your library in any order. A:SP$ Dig | Cost$ U U U | DigNum$ 10 | Reveal$ True | ChangeNum$ 0 | RememberRevealed$ True | SubAbility$ MillTargeted | SpellDescription$ Chroma - Reveal the top ten cards of your library. For each blue mana symbol in the mana costs of the revealed cards, target opponent puts the top card of his or her library into his or her graveyard. Then put the cards you revealed this way on the bottom of your library in any order.
SVar:MillTargeted:DB$ Mill | NumCards$ X | References$ X | ValidTgts$ Player | SubAbility$ DBCleanup SVar:MillTargeted:DB$ Mill | NumCards$ X | References$ X | ValidTgts$ Opponent | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:Remembered$ChromaSource.Blue SVar:X:Remembered$ChromaSource.Blue
SVar:Picture:http://www.wizards.com/global/images/magic/general/sanity_grinding.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/sanity_grinding.jpg