From f1aa02778ea5227d91c1b9f3bb01ee74be7c79a2 Mon Sep 17 00:00:00 2001 From: jendave Date: Sun, 7 Aug 2011 01:41:57 +0000 Subject: [PATCH] - Fixed AI double blocking creatures with "CARDNAME can't be blocked by more than one creature." --- src/forge/ComputerUtil_Block2.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/forge/ComputerUtil_Block2.java b/src/forge/ComputerUtil_Block2.java index dc3d55a07ed..f7384530cf3 100644 --- a/src/forge/ComputerUtil_Block2.java +++ b/src/forge/ComputerUtil_Block2.java @@ -142,7 +142,8 @@ public class ComputerUtil_Block2 private static Combat makeGangBlocks(Combat combat){ CardList currentAttackers = new CardList(attackersLeft.toArray()); - currentAttackers = currentAttackers.getKeywordsDontContain("Rampage"); + currentAttackers = currentAttackers.getKeywordsDontContain("Rampage"); + currentAttackers = currentAttackers.getKeywordsDontContain("CARDNAME can't be blocked by more than one creature."); CardList blockers; //Try to block an attacker without first strike with a gang of first strikers @@ -277,6 +278,7 @@ public class ComputerUtil_Block2 CardList tramplingAttackers = attackers.getKeyword("Trample"); tramplingAttackers = tramplingAttackers.getKeywordsDontContain("Rampage"); //Don't make it worse + tramplingAttackers = tramplingAttackers.getKeywordsDontContain("CARDNAME can't be blocked by more than one creature."); //TODO - should check here for a "rampage-like" trigger that replaced the keyword: // "Whenever CARDNAME becomes blocked, it gets +1/+1 until end of turn for each creature blocking it." @@ -302,6 +304,7 @@ public class ComputerUtil_Block2 CardList safeBlockers; CardList blockers; CardList targetAttackers = blockedButUnkilled.getKeywordsDontContain("Rampage"); //Don't make it worse + targetAttackers = targetAttackers.getKeywordsDontContain("CARDNAME can't be blocked by more than one creature."); //TODO - should check here for a "rampage-like" trigger that replaced the keyword: // "Whenever CARDNAME becomes blocked, it gets +1/+1 until end of turn for each creature blocking it."