- Little AI fix in AF Attach Curse.

- Added Screams from Within.
This commit is contained in:
Sloth
2011-09-04 15:03:39 +00:00
parent 78468572d0
commit 936fae779e
4 changed files with 19 additions and 3 deletions

View File

@@ -425,17 +425,17 @@ public class AbilityFactory_Attach {
prefList = list.filter(new CardListFilter() {
@Override
public boolean addCard(Card c) {
if (c.hasKeyword("Indestructible") && c.getNetDefense() <= Math.abs(tgh))
if (!c.hasKeyword("Indestructible") && c.getLethalDamage() <= Math.abs(tgh))
return true;
return c.getLethalDamage() <= Math.abs(tgh);
return c.getNetDefense() <= Math.abs(tgh);
}
});
}
Card c = null;
if (prefList == null || prefList.size() == 0)
prefList = new CardList(list);
else if (prefList.size() > 0){
else {
c = CardFactoryUtil.AI_getBest(prefList);
if (c != null)
return c;