mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Little AI fix in AF Attach Curse.
- Added Screams from Within.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user