diff options
author | Kaytotes <kaytotes@users.noreply.github.com> | 2022-06-09 13:04:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 14:04:44 +0200 |
commit | eab6852b686ffaafa3aefb09b9c310c453db55aa (patch) | |
tree | fab1bcfe4a54ab75bb19b19e7110d3b5e0ebc931 | |
parent | b155209ec40f867fc90d64eb207f3d3e7f633c2b (diff) |
Core/Units: Removed incorrect facing movement packet sent with every creature autoattack (#28006)
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index a7f9c4ae169..43f9623e646 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -2096,9 +2096,6 @@ void Unit::AttackerStateUpdate(Unit* victim, WeaponAttackType attType, bool extr if (!extra && _lastExtraAttackSpell) _lastExtraAttackSpell = 0; - if (GetTypeId() == TYPEID_UNIT && !HasUnitFlag(UNIT_FLAG_POSSESSED) && !HasUnitFlag2(UNIT_FLAG2_CANNOT_TURN)) - SetFacingToObject(victim, false); // update client side facing to face the target (prevents visual glitches when casting untargeted spells) - // melee attack spell cast at main hand attack only - no normal melee dmg dealt if (attType == BASE_ATTACK && m_currentSpells[CURRENT_MELEE_SPELL] && !extra) m_currentSpells[CURRENT_MELEE_SPELL]->cast(); |