Core/Npc: Remove bytes1 once the npc start a combat

Closes #16832
By Rushor
This commit is contained in:
Killyana authored and Aokromes committed 2017-07-22 09:13:12 +02:00
1 parent e830489294
commit 7b714a7033
1 file changed
+2 -1
+2 -1
View File
@@ -5541,8 +5541,9 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
creature->SendAIReaction(AI_REACTION_HOSTILE);
creature->CallAssistance();
// Remove emote state - will be restored on creature reset
// Remove emote state and bytes - will be restored on creature reset
SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_STAND);
}
// delay offhand weapon attack to next attack time