Core/Unit: remove emote state when creature attacks another unit (#17542)

This commit is contained in:
SnapperRy authored and Aokromes committed 2016-07-20 19:21:27 +02:00
1 parent 408f4370b3
commit b6be6556f6
1 file changed
+3
+3
View File
@@ -7717,6 +7717,9 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
ToCreature()->SendAIReaction(AI_REACTION_HOSTILE);
ToCreature()->CallAssistance();
// Remove emote state - will be restored on creature reset
SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
}
// delay offhand weapon attack to next attack time