- Little AI improvements for spPumpTgtCurse targeting Indestructible creatures.

- Added a BuffedBy SVar to Harbor Serpent.
This commit is contained in:
jendave
2011-08-06 07:21:16 +00:00
parent 70dcdc872c
commit ecc3e7580d
2 changed files with 3 additions and 1 deletions

View File

@@ -5038,7 +5038,8 @@ public class CardFactory implements NewConstants {
if (NumDefense[0] < 0 && !list.isEmpty()) { // with spells that give -X/-X, compi will try to destroy a creature
list = list.filter(new CardListFilter() {
public boolean addCard(Card c) {
return (c.getKillDamage() <= -NumDefense[0]);
if (c.getNetDefense() <= -NumDefense[0] ) return true; // can kill indestructible creatures
return (c.getKillDamage() <= -NumDefense[0] && !c.hasKeyword("Indestructible"));
}
}); // leaves all creatures that will be destroyed
} // -X/-X end