mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fix bug in AF_Attach
This commit is contained in:
@@ -476,12 +476,13 @@ public class AbilityFactory_Attach {
|
|||||||
type = params.get("AddType");
|
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);
|
Card c = CardFactoryUtil.AI_getBest(list);
|
||||||
|
|
||||||
// TODO: Port over some of the existing code, but rewrite most of it.
|
// 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
|
// 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)
|
if (c == null)
|
||||||
return chooseLessPreferred(mandatory, list);
|
return chooseLessPreferred(mandatory, list);
|
||||||
|
|||||||
Reference in New Issue
Block a user