mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
fix(Core/Movement): properly handle UNIT_STATE_CHARGING (#7152)
- Closes #6065 - Closes #6669
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user