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:
hondacrx
2019-08-14 23:25:43 -04:00
parent ed3a310756
commit 4b627a6dcf
3 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -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())