fix(Core/Movement): properly handle UNIT_STATE_CHARGING (#7152)

- Closes #6065
- Closes #6669
This commit is contained in:
UltraNix
2021-08-05 13:55:11 +02:00
committed by GitHub
parent 7822a270ff
commit 36a1777b99
2 changed files with 13 additions and 6 deletions

View File

@@ -5043,8 +5043,6 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/)
{
sScriptMgr->AnticheatSetUnderACKmount(m_caster->ToPlayer());
}
m_caster->AddUnitState(UNIT_STATE_CHARGING);
}
else
{
@@ -5064,8 +5062,6 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/)
{
sScriptMgr->AnticheatSetUnderACKmount(m_caster->ToPlayer());
}
m_caster->AddUnitState(UNIT_STATE_CHARGING);
}
}
@@ -5074,8 +5070,6 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/)
if (!unitTarget)
return;
m_caster->ClearUnitState(UNIT_STATE_CHARGING);
if (m_caster->ToPlayer())
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(m_caster->ToPlayer(), true);