From 0267614bbfa753f868cd29e8408590c87fea8048 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 06:09:34 +0000 Subject: [PATCH] little fixes to the handling of buffedby and antibuffedby SVars. --- src/forge/ComputerAI_General.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/forge/ComputerAI_General.java b/src/forge/ComputerAI_General.java index 24778a1db32..0c5e8a85290 100644 --- a/src/forge/ComputerAI_General.java +++ b/src/forge/ComputerAI_General.java @@ -158,17 +158,17 @@ public class ComputerAI_General implements Computer { Card buffedcard = buffed.get(j); if (buffedcard.getSVar("BuffedBy").length() > 0) { String buffedby = buffedcard.getSVar("BuffedBy"); - final String bffdby[] = buffedby.split(","); + String bffdby[] = buffedby.split(","); if (c.isValidCard(bffdby)) return true; } }//BuffedBy - CardList antibuffed = new CardList(AllZone.Human_Play.getCards()); //get all cards the computer controls with AntiBuffedBy + CardList antibuffed = new CardList(AllZone.Human_Play.getCards()); //get all cards the human controls with AntiBuffedBy for(int k = 0; k < antibuffed.size(); k++) { Card buffedcard = antibuffed.get(k); if (buffedcard.getSVar("AntiBuffedBy").length() > 0) { String buffedby = buffedcard.getSVar("AntiBuffedBy"); - final String bffdby[] = buffedby.split(","); + String bffdby[] = buffedby.split(","); if (c.isValidCard(bffdby)) return true; } }//AntiBuffedBy