- 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:
Agetian
2017-06-20 12:53:37 +00:00
parent 53ea39f787
commit ce4cfd11bb
2 changed files with 10 additions and 1 deletions

View File

@@ -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) {