Skip to content

Commit

Permalink
Do not broadcast facing on stun if target is not in world
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 17, 2021
1 parent 82aa156 commit 7dee5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spells/SpellAuras.cpp
Expand Up @@ -5227,7 +5227,7 @@ void Aura::HandleAuraModStun(bool apply, bool Real)
target->ModifyAuraState(AURA_STATE_FROZEN, apply);

// Creature specific
if (target->GetTypeId() != TYPEID_PLAYER && !target->IsStunned())
if (target->IsInWorld() && !target->IsPlayer() && !target->IsStunned())
target->SetFacingTo(target->GetOrientation());

Unit* caster = GetCaster();
Expand Down

0 comments on commit 7dee5a6

Please sign in to comment.