From f3ff053e7500e851d0cc1e99ef8cb33cf308c7eb Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 05:56:57 +0000 Subject: [PATCH] - Slight change to the code for Kor Firewalker. Now uses JOptionPane.showConfirmDialog(YES_NO_OPTION), this now gives the human a choice to gain or not gain life. --- src/forge/GameActionUtil.java | 74 ++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 32 deletions(-) diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 8023cc0175d..9db82a0b270 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -2878,41 +2878,51 @@ public class GameActionUtil { }//if }//Fable - public static void playCard_Kor_Firewalker(Card c) { + public static void playCard_Kor_Firewalker(Card c) { - final PlayerZone play = AllZone.getZone(Constant.Zone.Play, - Constant.Player.Human); - final PlayerZone comp = AllZone.getZone(Constant.Zone.Play, - Constant.Player.Computer); + final PlayerZone play = AllZone.getZone(Constant.Zone.Play, Constant.Player.Human); + final PlayerZone comp = AllZone.getZone(Constant.Zone.Play, Constant.Player.Computer); - CardList list = new CardList(); - list.addAll(play.getCards()); - list.addAll(comp.getCards()); + CardList list = new CardList(); + list.addAll(play.getCards()); + list.addAll(comp.getCards()); + list = list.getName("Kor Firewalker"); - list = list.getName("Kor Firewalker"); - - if (list.size() > 0){ - ArrayList cl=CardUtil.getColors(c); - if (cl.contains(Constant.Color.Red)) - { - for (int i=0;i 0) { + ArrayList cl=CardUtil.getColors(c); + if (cl.contains(Constant.Color.Red)) { + for (int i=0;i