Core/Spells: Properly send autorepeat cancel packet to self and fix some problems with autoshot (#18918)
Port TrinityCore Commit: https://github.com/TrinityCore/TrinityCore/commit/67000a7826c2f29e5d61272abf3d3d6ea194fc9a
This commit is contained in:
@@ -2788,7 +2788,7 @@ namespace Game.Entities
|
||||
Spell spell = m_currentSpells.LookupByKey(spellType);
|
||||
if (spell != null
|
||||
&& (withDelayed || spell.getState() != SpellState.Delayed)
|
||||
&& (withInstant || spell.GetCastTime() > 0))
|
||||
&& (withInstant || spell.GetCastTime() > 0 || spell.getState() == SpellState.Casting))
|
||||
{
|
||||
// for example, do not let self-stun aura interrupt itself
|
||||
if (!spell.IsInterruptable())
|
||||
|
||||
Reference in New Issue
Block a user