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

This commit is contained in:
SnapperRy
2016-07-15 18:31:52 +02:00
committed by GitHub
parent e9ef43cc20
commit a732749d72

View File

@@ -8584,6 +8584,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