From afd7989e092a73f40c4a5b15d10c0ea35ce1748a Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 05:58:10 +0000 Subject: [PATCH] - Fixed a StaticEffect keyword bug. --- src/forge/GameActionUtil.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index d743d878057..2f5f95ca489 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -10457,12 +10457,13 @@ public class GameActionUtil { int Count = list.size(); // .... For each card that needs the bonus, add the bonus for(int i = 0; i < Count; i++) { - if(a + 1 == Keyword.length) old[ANumber].add(list.get(i)); // Only store the card when it has all the bonuses added + if(a + 1 == Keyword.length && !Keyword[a].contains("SetPT")) old[ANumber].add(list.get(i)); // Only store the card when it has all the bonuses added if(Keyword[a].contains("PTBonus")) { - list.get(i).addSemiPermanentAttackBoost(Integer.valueOf(Keyword[a].split("/")[1])); - list.get(i).addSemiPermanentDefenseBoost(Integer.valueOf(Keyword[a].split("/")[2])); - } - else if(Keyword[a].contains("SetPT")) { + list.get(i).addSemiPermanentAttackBoost(Integer.valueOf(Keyword[a].split("/")[1])); + list.get(i).addSemiPermanentDefenseBoost(Integer.valueOf(Keyword[a].split("/")[2])); + } + else if(Keyword[a].contains("SetPT")) { + //old[ANumber].remove(list.get(i)); //hack, make sure the card is not in the "old" list if there's a setPT // -9001 is a failsafe number, It will be used when a card only has a SetPT bonus which only affects // cards with either a Power or Toughness bonus, but not both. NOT TESTED int[] SetPTAmounts = SetPTBonus(SourceCard, Keyword_Details); @@ -16143,7 +16144,6 @@ public class GameActionUtil { } }); return barons.size() - 1; - } public void execute() {