mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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) {
|
||||
|
||||
Reference in New Issue
Block a user