From b96f36e11a1bee2157c3331fc436b84c92f13c98 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 04:16:28 +0000 Subject: [PATCH] - Fixed Phyrexian War Beast computer code. --- src/forge/CardFactory_Creatures.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index 5b382ec5dbd..f1d5e9da145 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -17479,7 +17479,18 @@ public class CardFactory_Creatures { PlayerZone play = AllZone.getZone(Constant.Zone.Play,player); CardList choice = new CardList(play.getCards()); choice = choice.getType("Land"); - AllZone.InputControl.setInput(CardFactoryUtil.input_sacrifice(ability,choice,"Select a land to sacrifice")); + + if (choice.size() > 0) + { + if (player.equals(Constant.Player.Human)) + AllZone.InputControl.setInput(CardFactoryUtil.input_sacrifice(ability,choice,"Select a land to sacrifice")); + else //compy + { + //AllZone.GameAction.sacrificePermanent(Constant.Player.Computer, ability, choice); + ability.setTargetCard(choice.get(0)); + AllZone.Stack.add(ability); + } + } } };