Files
coa-kui-nameplates/Kui_Nameplates/Modules
florian.berthold 39370fcf98 fix: guard InterfaceOptionsFrame HookScript, defer TankMode class resolve
On the CoA client the legacy InterfaceOptionsFrame global may be nil (the
reworked Settings panel does not always expose it). The unguarded
HookScript calls in Castbar.lua and ClassColours.lua then threw on
addon load. Wrap both in 'if InterfaceOptionsFrame then ... end',
mirroring the guard already present around InterfaceOptionsCombatPanel
in Castbar.lua. SetCVars() is still called unconditionally afterwards.

TankMode.lua resolved the player's class at file scope with
select(2, UnitClass('player')), which on CoA can run before
PLAYER_LOGIN — UnitClass returns nil and 'class' stays nil for the
whole session, breaking IsTank/IsHealer/Toggle. Move the assignment
into mod:OnEnable() (where it is already re-assigned) and leave the
file-scope local as nil. Also document that IsTank/IsHealer only know
about the vanilla 3.3.5 classes; CoA custom classes fall through to
DAMAGER until a CoA-aware tank/healer table is available.
2026-05-24 17:38:00 +02:00
..
2023-05-22 20:03:54 -07:00
2023-05-22 20:03:54 -07:00
2023-05-22 20:03:54 -07:00
2023-05-22 20:03:54 -07:00
2023-05-22 20:03:54 -07:00
2023-05-22 20:03:54 -07:00