mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Added AILogic$ ConsiderSac to Heart-Piercer Manticore, updated the logic not to sacrifice creatures with power 0 to it or valuable creatures unless lethal damage can be dealt to player (is CreatureEvalThreshold too permissive/restrictive? could stand to be improved, most likely).
This commit is contained in:
@@ -731,6 +731,14 @@ public class ComputerUtil {
|
||||
public boolean apply(final Card c) {
|
||||
int sacThreshold = 190;
|
||||
|
||||
if ("HeartPiercer".equals(source.getParam("SacrificeParam"))) {
|
||||
if (c.getCurrentPower() == 0) {
|
||||
return false;
|
||||
} else if (c.getCurrentPower() >= ai.getOpponentsSmallestLifeTotal()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if ("DesecrationDemon".equals(source.getParam("AILogic"))) {
|
||||
sacThreshold = SpecialCardAi.DesecrationDemon.getSacThreshold();
|
||||
} else if (considerSacLogic && considerSacThreshold != -1) {
|
||||
|
||||
@@ -4,7 +4,7 @@ Types:Creature Manticore
|
||||
PT:4/3
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigSacrifice | TriggerDescription$ When CARDNAME enters the battlefield, you may sacrifice another creature. When you do, CARDNAME deals damage equal to that creature's power to target creature or player.
|
||||
|
||||
SVar:TrigSacrifice:DB$ Sacrifice | Optional$ True | SacrificeParam$ HeartPiercer | SacValid$ Creature.Other | SacMessage$ another Creature | Amount$ 1
|
||||
SVar:TrigSacrifice:DB$ Sacrifice | Optional$ True | SacrificeParam$ HeartPiercer | SacValid$ Creature.Other | SacMessage$ another Creature | Amount$ 1 | AILogic$ ConsiderSac
|
||||
|
||||
T:Mode$ Sacrificed | ValidPlayer$ You | ValidCard$ Creature.Other | CauseParam$ HeartPiercer | Execute$ TrigDamage | Secondary$ True | TriggerDescription$ CARDNAME deals damage equal to that creature's power to target creature or player.
|
||||
|
||||
@@ -12,6 +12,7 @@ SVar:TrigDamage:DB$ DealDamage | ValidTgts$ Creature,Player | TgtPrompt$ Select
|
||||
|
||||
K:Embalm:5 R
|
||||
SVar:XPower:TriggeredCard$CardPower
|
||||
SVar:AIPreferenceParams:CreatureEvalThreshold$ 200
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/heart_piercer_manticore.jpg
|
||||
Oracle:When Heart-Piercer Manticore enters the battlefield, you may sacrifice another creature. When you do, Heart-Piercer Manticore deals damage equal to that creature's power to target creature or player.\nEmbalm {5} {R} ({5} {R}, Exile this card from your graveyard: Create a token that's a copy of it, except it's a white Zombie Manticore with no mana cost. Embalm only as a sorcery.)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user