- Added the missing AILogic for Lurebound Scarecrow and fixed the script.

This commit is contained in:
Sloth
2011-11-16 07:27:51 +00:00
parent fcf7e756e4
commit 4e5a67fa29
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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);