Skip to content

fix(nameplates): boss with a mana pool coloured as Spell Caster - #1990

Merged
EllesmereGaming merged 2 commits into
EllesmereGaming:mainfrom
dfrisone:fix/boss-labelled-as-spell-caster
Sep 7, 2026
Merged

fix(nameplates): boss with a mana pool coloured as Spell Caster#1990
EllesmereGaming merged 2 commits into
EllesmereGaming:mainfrom
dfrisone:fix/boss-labelled-as-spell-caster

Conversation

@dfrisone

@dfrisone dfrisone commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Fix from Svart. Reported as Imperator Averzian showing the Spell Caster colour
instead of Bosses.

Root cause

In GetReactionColor's colour-priority chain, boss units are detected up front
but their colour is deliberately deferred to step 10b, below the threat-colour
steps. The Caster check at step 8 is a plain mana-pool test with no boss
exclusion, so a boss that also has a mana pool returns there and step 10b is
never reached.

Mini-boss does not have this bug: step 7 returns above the Caster check, so the
two are already mutually exclusive.

Fix

One line: bosses are excluded from the Caster test, giving boss/caster the same
mutual exclusivity boss and mini-boss already have. Plus a comment recording why
the exclusion is needed here and not for mini-boss.

Testing

luac -p clean; house style check clean. Not click-tested by me -- Svart
reported it from the encounter. Any mana-using boss reproduces it; a boss
without mana is unaffected either way.

svart2521 and others added 2 commits September 6, 2026 13:58
Boss units are detected up front but their colour is deferred to step 10b,
below the threat-colour steps. The Caster check at step 8 is a plain
mana-pool test with no boss exclusion, so any boss that also has mana --
Imperator Averzian, for one -- returned there and never reached 10b.

Mini-boss does not have this bug because step 7 returns above the Caster
check. Excluding bosses from the Caster test gives boss and caster the same
mutual exclusivity boss and mini-boss already have.
@EllesmereGaming
EllesmereGaming merged commit bd48884 into EllesmereGaming:main Sep 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants