diff options
author | Killyana <morphone1@gmail.com> | 2017-07-22 09:09:16 +0200 |
---|---|---|
committer | Killyana <morphone1@gmail.com> | 2017-07-22 09:09:16 +0200 |
commit | 21b03e7d9bc9165f5e0cf4fbdc5bd9b1534dbcd7 (patch) | |
tree | 3af4ce393faa0f732b95fd572e1ec42f3fb0e108 /src | |
parent | 331e463de83e4ea13935773f992b32733272d263 (diff) |
Core/Npc: Remove bytes1 once the npc start a combat
Closes #16832
By Rushor
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 3e236c7266f..b27bd26f143 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -5883,8 +5883,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 |