From 3b8bf1cc8357c9ae90e129625431855b0c2e1cc7 Mon Sep 17 00:00:00 2001 From: excessum Date: Sat, 7 Mar 2015 07:59:24 +0000 Subject: [PATCH] - Implemented AI for Tasigur, the Golden Fang --- forge-ai/src/main/java/forge/ai/ability/MillAi.java | 7 +++++++ forge-gui/res/cardsfolder/t/tasigur_the_golden_fang.txt | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/MillAi.java b/forge-ai/src/main/java/forge/ai/ability/MillAi.java index 2fb4819f1fb..be5e34a2eb6 100644 --- a/forge-ai/src/main/java/forge/ai/ability/MillAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/MillAi.java @@ -76,6 +76,13 @@ public class MillAi extends SpellAbilityAi { return false; } } + + if (source.getName().equals("Tasigur, the Golden Fang")) { + if (!ai.getGame().getPhaseHandler().is(PhaseType.END_OF_TURN, ai.getOpponent()) || + ai.getCardsIn(ZoneType.Library).size() < 10) { + return false; + } + } return true; } diff --git a/forge-gui/res/cardsfolder/t/tasigur_the_golden_fang.txt b/forge-gui/res/cardsfolder/t/tasigur_the_golden_fang.txt index 4f1ef813827..f8ea231f2f3 100644 --- a/forge-gui/res/cardsfolder/t/tasigur_the_golden_fang.txt +++ b/forge-gui/res/cardsfolder/t/tasigur_the_golden_fang.txt @@ -5,6 +5,5 @@ PT:4/5 K:Delve A:AB$ Mill | Cost$ 2 GU GU | Defined$ You | NumCards$ 2 | SubAbility$ DBReturn | SpellDescription$ Put the top two cards of your library into your graveyard, then return a nonland card of an opponent's choice from your graveyard to your hand. SVar:DBReturn:DB$ ChangeZone | Origin$ Graveyard | Destination$ Hand | DefinedPlayer$ You | Chooser$ Opponent | Hidden$ True | Mandatory$ True | ChangeType$ Card.nonLand+YouOwn | AILogic$ WorstCard -SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/tasigur_the_golden_fang.jpg Oracle:Delve (Each card you exile from your graveyard while casting this spell pays for {1}.)\n{2}{G/U}{G/U}: Put the top two cards of your library into your graveyard, then return a nonland card of an opponent's choice from your graveyard to your hand.