mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
7c932559e0
commit
1f20f55c62
1 changed files with 5 additions and 4 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue