From b2d01c8d766892f1383dc07439921ae4df766682 Mon Sep 17 00:00:00 2001 From: Kaytotes Date: Sat, 3 Sep 2022 16:52:02 +0200 Subject: [PATCH] Core/Units: Removed incorrect facing movement packet sent with every creature autoattack --- src/server/game/Entities/Unit/Unit.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index b7f87f6d27..266a1e79c3 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -1978,9 +1978,6 @@ void Unit::AttackerStateUpdate(Unit* victim, WeaponAttackType attType, bool extr if (attType != BASE_ATTACK && attType != OFF_ATTACK) return; // ignore ranged case - if (GetTypeId() == TYPEID_UNIT && !HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_POSSESSED) && !HasFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_DISABLE_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();