From 82aad02edb70cb07d2b73510aa9b0e61ee9a265b Mon Sep 17 00:00:00 2001 From: Sloth Date: Mon, 14 Apr 2014 11:21:01 +0000 Subject: [PATCH] - Added a TributeAILogic for Oracle of Bones. --- forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java | 2 ++ forge-gui/res/cardsfolder/o/oracle_of_bones.txt | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java b/forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java index b0f727a5311..485f26df40b 100644 --- a/forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java @@ -428,6 +428,8 @@ public class CountersPutAi extends SpellAbilityAi { } } else if (logic.equals("DontControlCreatures")) { return !creats.isEmpty(); + } else if (logic.equals("OppHasCardsInHand")) { + return !player.getOpponent().getCardsIn(ZoneType.Hand).isEmpty(); } } } diff --git a/forge-gui/res/cardsfolder/o/oracle_of_bones.txt b/forge-gui/res/cardsfolder/o/oracle_of_bones.txt index d8775ed59dd..a5a5c2a66ea 100644 --- a/forge-gui/res/cardsfolder/o/oracle_of_bones.txt +++ b/forge-gui/res/cardsfolder/o/oracle_of_bones.txt @@ -6,7 +6,6 @@ K:Haste K:Tribute 2 T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+notTributed | Execute$ TrigNotTribute | TriggerDescription$ When CARDNAME enters the battlefield, if tribute wasn't paid, you may cast an instant or sorcery card from your hand without paying its mana cost. SVar:TrigNotTribute:AB$ Play | Cost$ 0 | ValidZone$ Hand | Valid$ Instant.YouOwn,Sorcery.YouOwn | Controller$ You | WithoutManaCost$ True | Optional$ True | Amount$ 1 -SVar:NeedsToPlayVar:CheckHand GE1 -SVar:CheckHand:Count$ValidHand Sorcery.YouCtrl,Instant.YouCtrl +SVar:TributeAILogic:OppHasCardsInHand SVar:Picture:http://www.wizards.com/global/images/magic/general/oracle_of_bones.jpg Oracle:Haste\nTribute 2 (As this creature enters the battlefield, an opponent of your choice may place two +1/+1 counters on it.)\nWhen Oracle of Bones enters the battlefield, if tribute wasn't paid, you may cast an instant or sorcery card from your hand without paying its mana cost.