mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Little AI improvements for spPumpTgtCurse targeting Indestructible creatures.
- Added a BuffedBy SVar to Harbor Serpent.
This commit is contained in:
@@ -4,6 +4,7 @@ Types:Creature Serpent
|
|||||||
Text:Harbor Serpent can't attack unless there are five or more Islands on the battlefield.
|
Text:Harbor Serpent can't attack unless there are five or more Islands on the battlefield.
|
||||||
PT:5/5
|
PT:5/5
|
||||||
K:Islandwalk
|
K:Islandwalk
|
||||||
|
K:SVar:BuffedBy:Island
|
||||||
K:SVar:Rarity:Common
|
K:SVar:Rarity:Common
|
||||||
K:SVar:Picture:http://www.wizards.com/global/images/magic/general/harbor_serpent.jpg
|
K:SVar:Picture:http://www.wizards.com/global/images/magic/general/harbor_serpent.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -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
|
if (NumDefense[0] < 0 && !list.isEmpty()) { // with spells that give -X/-X, compi will try to destroy a creature
|
||||||
list = list.filter(new CardListFilter() {
|
list = list.filter(new CardListFilter() {
|
||||||
public boolean addCard(Card c) {
|
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
|
}); // leaves all creatures that will be destroyed
|
||||||
} // -X/-X end
|
} // -X/-X end
|
||||||
|
|||||||
Reference in New Issue
Block a user