Core/Unit: remove emote state when creature attacks another unit (#17542)
This commit is contained in:
1 parent
408f4370b3
commit
b6be6556f6
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user