fix(Core/Unit): Prevent Unit emote when entering combat (#6030)

This commit is contained in:
v.tihomirov
2021-05-31 10:59:25 +03:00
committed by GitHub
parent a21a6aa486
commit 793b915907

View File

@@ -12922,6 +12922,7 @@ void Unit::CombatStart(Unit* target, bool initialAggro)
SetInCombatWith(target);
target->SetInCombatWith(this);
target->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
// Xinef: If pet started combat - put owner in combat
if (Unit* owner = GetOwner())