Core/Units: Removed incorrect facing movement packet sent with every creature autoattack

Port From (https://github.com/TrinityCore/TrinityCore/commit/2e0afa7bca3b6de10eacbcc082193d2c67050f88)
This commit is contained in:
hondacrx
2022-06-15 18:25:39 -04:00
parent 3682957f4c
commit 9636581ee9
-3
View File
@@ -529,9 +529,6 @@ namespace Game.Entities
if (!extra && _lastExtraAttackSpell != 0)
_lastExtraAttackSpell = 0;
if (IsTypeId(TypeId.Unit) && !HasUnitFlag(UnitFlags.Possessed) && !HasUnitFlag2(UnitFlags2.CannotTurn))
SetFacingToObject(victim, false); // update client side facing to face the target (prevents visual glitches when casting untargeted spells)
// melee attack spell casted at main hand attack only - no normal melee dmg dealt
if (attType == WeaponAttackType.BaseAttack && GetCurrentSpell(CurrentSpellTypes.Melee) != null && !extra)
m_currentSpells[CurrentSpellTypes.Melee].Cast();