fix(Core/Unit): Prevent Unit emote when entering combat (#6030)
This commit is contained in:
@@ -12922,6 +12922,7 @@ void Unit::CombatStart(Unit* target, bool initialAggro)
|
|||||||
|
|
||||||
SetInCombatWith(target);
|
SetInCombatWith(target);
|
||||||
target->SetInCombatWith(this);
|
target->SetInCombatWith(this);
|
||||||
|
target->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
|
||||||
|
|
||||||
// Xinef: If pet started combat - put owner in combat
|
// Xinef: If pet started combat - put owner in combat
|
||||||
if (Unit* owner = GetOwner())
|
if (Unit* owner = GetOwner())
|
||||||
|
|||||||
Reference in New Issue
Block a user