fix(Core/Players): charge should not delay player's auto attacks (#8978)

- Closes #7266
This commit is contained in:
UltraNix
2021-11-07 20:40:34 +01:00
committed by GitHub
parent 53a7a295fd
commit 0e84538ee1

View File

@@ -156,8 +156,7 @@ void Player::Update(uint32 p_time)
m_achievementMgr->UpdateTimedAchievements(p_time);
if (HasUnitState(UNIT_STATE_MELEE_ATTACKING) &&
!HasUnitState(UNIT_STATE_CASTING))
if (HasUnitState(UNIT_STATE_MELEE_ATTACKING) && !HasUnitState(UNIT_STATE_CASTING) && !HasUnitState(UNIT_STATE_CHARGING))
{
if (Unit* victim = GetVictim())
{