From 4e5a67fa296f7293eefeab1327a095427c56236f Mon Sep 17 00:00:00 2001 From: Sloth Date: Wed, 16 Nov 2011 07:27:51 +0000 Subject: [PATCH] - Added the missing AILogic for Lurebound Scarecrow and fixed the script. --- res/cardsfolder/l/lurebound_scarecrow.txt | 3 ++- .../java/forge/card/abilityfactory/AbilityFactoryChoose.java | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/res/cardsfolder/l/lurebound_scarecrow.txt b/res/cardsfolder/l/lurebound_scarecrow.txt index 9da6b57c9a2..c30e6a08a23 100644 --- a/res/cardsfolder/l/lurebound_scarecrow.txt +++ b/res/cardsfolder/l/lurebound_scarecrow.txt @@ -5,9 +5,10 @@ Text:no text PT:4/4 T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseColor | Static$ True| TriggerDescription$ As CARDNAME enters the battlefield, choose a color. SVar:ChooseColor:AB$ ChooseColor | Cost$ 0 | Defined$ You | AILogic$ MostProminentComputerControls -T:Mode$ Always | CheckSVar$ X | SVarCompare$ EQ0 | TriggerZones$ Battlefield | Static$ True | Execute$ TrigSacrifice | Description$ When you control no permanents of the chosen color, sacrifice CARDNAME. +T:Mode$ Always | CheckSVar$ X | SVarCompare$ EQ0 | TriggerZones$ Battlefield | Static$ True | Execute$ TrigSacrifice | TriggerDescription$ When you control no permanents of the chosen color, sacrifice CARDNAME. SVar:TrigSacrifice:AB$ Sacrifice | Cost$ 0 SVar:X:Count$Valid Permanent.YouCtrl+ChosenColor +SVar:NeedsToPlay:Permanent.nonColorless+YouCtrl SVar:Rarity:Uncommon SVar:Picture:http://www.wizards.com/global/images/magic/general/lurebound_scarecrow.jpg SetInfo:SHM|Uncommon|http://magiccards.info/scans/en/shm/256.jpg diff --git a/src/main/java/forge/card/abilityfactory/AbilityFactoryChoose.java b/src/main/java/forge/card/abilityfactory/AbilityFactoryChoose.java index 996c40ee268..41351a2e15a 100644 --- a/src/main/java/forge/card/abilityfactory/AbilityFactoryChoose.java +++ b/src/main/java/forge/card/abilityfactory/AbilityFactoryChoose.java @@ -657,6 +657,10 @@ public final class AbilityFactoryChoose { } chosen = CardFactoryUtil.getMostProminentColor(list); } + if (logic.equals("MostProminentComputerControls")) { + chosen = CardFactoryUtil.getMostProminentColor(AllZone.getComputerPlayer() + .getCardsIn(Zone.Battlefield)); + } if (logic.equals("MostProminentPermanent")) { final CardList list = AllZoneUtil.getCardsIn(Zone.Battlefield); chosen = CardFactoryUtil.getMostProminentColor(list);