mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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")) {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ Name:Sanity Grinding
|
||||
ManaCost:U U U
|
||||
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.
|
||||
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:X:Remembered$ChromaSource.Blue
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/sanity_grinding.jpg
|
||||
|
||||
Reference in New Issue
Block a user