fix: set interruptible flag on channel start for non-player casters

MSG_CHANNEL_START for NPCs/bosses was leaving UnitCastState::interruptible
at its default (true) instead of checking Spell.dbc AttributesEx.
This commit is contained in:
Kelsi 2026-03-17 19:45:45 -07:00
parent 7c932559e0
commit 1f20f55c62

View file

@ -7116,10 +7116,11 @@ void GameHandler::handlePacket(network::Packet& packet) {
castTimeRemaining = castTimeTotal;
} else {
auto& s = unitCastStates_[chanCaster];
s.casting = true;
s.spellId = chanSpellId;
s.timeTotal = chanTotalMs / 1000.0f;
s.timeRemaining = s.timeTotal;
s.casting = true;
s.spellId = chanSpellId;
s.timeTotal = chanTotalMs / 1000.0f;
s.timeRemaining = s.timeTotal;
s.interruptible = isSpellInterruptible(chanSpellId);
}
LOG_DEBUG("MSG_CHANNEL_START: caster=0x", std::hex, chanCaster, std::dec,
" spell=", chanSpellId, " total=", chanTotalMs, "ms");