- Fix bug in AF_Attach

This commit is contained in:
Sol
2011-10-24 02:00:03 +00:00
parent 7fe600c265
commit 37ca3553c2

View File

@@ -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);