forked from phenom/healer-man
Correct minion sacrifice and passive talent semantics (refs #19)
Coordinator Root /root, session 01a12399-cfab-7c72-8455-e0e4cb7e156c. Independently reviewed by /root/combat_source_finish_luna (GPT-6 Luna xhigh). 31 focused DK tests, required release check and complete source type check pass.
This commit is contained in:
1 parent
a9322a3897
commit
3687c423e2
11 files changed
+284
-10
No files matched your search
@@ -679,6 +679,12 @@ function scoreAbility(
|
||||
score += injured.length ? -3_000 : 300;
|
||||
}
|
||||
} else {
|
||||
if (ability.effects.some((effect) => effect.kind === "sacrifice-minion")) {
|
||||
// Automated minion sacrifices are emergency self-heals; the cast gate
|
||||
// still requires a living owned source minion before resources are spent.
|
||||
if (selfHealth >= cooldownPolicy.generic.defensiveHealthPercent / 100) return null;
|
||||
score += 140_000;
|
||||
}
|
||||
if (categories.has("mitigation")) {
|
||||
const defensiveThreshold = cooldownPolicy.generic.defensiveHealthPercent / 100;
|
||||
const emergencyThreshold = cooldownPolicy.generic.emergencyHealthPercent / 100;
|
||||
|
||||
Reference in new issue
Block a user