From 37ca3553c262b8410a7b7826593db0b33a00b9e7 Mon Sep 17 00:00:00 2001 From: Sol Date: Mon, 24 Oct 2011 02:00:03 +0000 Subject: [PATCH] - Fix bug in AF_Attach --- .../java/forge/card/abilityFactory/AbilityFactory_Attach.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/forge/card/abilityFactory/AbilityFactory_Attach.java b/src/main/java/forge/card/abilityFactory/AbilityFactory_Attach.java index 9ee7b5e9c16..4619d9d7145 100644 --- a/src/main/java/forge/card/abilityFactory/AbilityFactory_Attach.java +++ b/src/main/java/forge/card/abilityFactory/AbilityFactory_Attach.java @@ -476,12 +476,13 @@ public class AbilityFactory_Attach { type = params.get("AddType"); } - list.getNotType(type);// Filter out Basic Lands that have the same type as the changing type + list = list.getNotType(type);// Filter out Basic Lands that have the same type as the changing type Card c = CardFactoryUtil.AI_getBest(list); // TODO: Port over some of the existing code, but rewrite most of it. // Ultimately, these spells need to be used to reduce mana base of a color. So it might be better to choose a Basic over a Nonbasic + // Although a nonbasic card with a nasty ability, might be worth it to cast on if (c == null) return chooseLessPreferred(mandatory, list);