Core/Movement: Fix Warrior's Charge launch visual while jumping backw… (#23243)

* Core/Movement: Fix Warrior's Charge launch visual while jumping backwards

By Natureknight

* fix no-pch

(cherry picked from commit cc1a5202995b2c70eb2d0d4af36c593011234e35)
This commit is contained in:
Aokromes
2021-12-05 14:03:47 +01:00
committed by Shauren
parent 558772a0bc
commit 8f8ea509cb
@@ -35,6 +35,7 @@
#include "SpellInfo.h"
#include "MotionMaster.h"
#include "MovementGenerator.h"
#include "MoveSpline.h"
#include "Transport.h"
#include "Vehicle.h"
#include "SpellMgr.h"
@@ -324,6 +325,9 @@ void WorldSession::HandleMovementOpcode(OpcodeClient opcode, MovementInfo& movem
return;
}
if (!mover->movespline->Finalized())
return;
// stop some emotes at player move
if (plrMover && (plrMover->GetEmoteState() != 0))
plrMover->SetEmoteState(EMOTE_ONESHOT_NONE);