From 12fe90c782129ed00f630a06978cbe0694e3492f Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 06:00:13 +0000 Subject: [PATCH] - Added a filter to ComputerAI_General.getMain2() and this should prevent the computer from summoning Ball Lightning type creatures during main phase 2. - Minor fix to code block for Breath of Life; False Defeat; Resurrection; Zombify. --- src/forge/CardFactory_Sorceries.java | 2 +- src/forge/ComputerAI_General.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/forge/CardFactory_Sorceries.java b/src/forge/CardFactory_Sorceries.java index 2fc5c780f93..630561d1aae 100644 --- a/src/forge/CardFactory_Sorceries.java +++ b/src/forge/CardFactory_Sorceries.java @@ -918,7 +918,7 @@ public class CardFactory_Sorceries { //*************** START *********** START ************************** - else if(cardName.equals("Breath of Life") || cardName.equals("Resurrection") + else if(cardName.equals("Breath of Life") || cardName.equals("Resurrection") || cardName.equals("False Defeat") || cardName.equals("Zombify")) { final SpellAbility spell = new Spell(card) { private static final long serialVersionUID = -5799646914112924814L; diff --git a/src/forge/ComputerAI_General.java b/src/forge/ComputerAI_General.java index e2dc4f43503..24778a1db32 100644 --- a/src/forge/ComputerAI_General.java +++ b/src/forge/ComputerAI_General.java @@ -219,6 +219,10 @@ public class ComputerAI_General implements Computer { all.addAll(AllZone.Computer_Hand.getCards()); all.addAll(AllZone.Computer_Play.getCards()); all.addAll(CardFactoryUtil.getFlashbackCards(Constant.Player.Computer).toArray()); + + // Prevent the computer from summoning Ball Lightning type creatures during main phase 2 + all = all.getNotKeyword("At the beginning of the end step, sacrifice CARDNAME."); + all = all.filter(new CardListFilter() { public boolean addCard(Card c) { if(c.isLand()) return false;