chore(Core/Player): remove unused AnticheatSetSkipOnePacketForASH() function (#17947)

This commit is contained in:
Tristan 'Natrist' Cormier
2023-12-08 19:09:52 -05:00
committed by GitHub
parent 4d935d6d8a
commit ac676f87ab
9 changed files with 0 additions and 54 deletions

View File

@@ -4927,7 +4927,6 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/)
Player* player = m_caster->ToPlayer();
if (player)
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(player, true);
// charge changes fall time
player->SetFallInformation(GameTime::GetGameTime().count(), m_caster->GetPositionZ());
@@ -4954,11 +4953,6 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/)
sScriptMgr->AnticheatSetUnderACKmount(player);
}
}
if (effectHandleMode == SPELL_EFFECT_HANDLE_HIT_TARGET && m_caster->ToPlayer())
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(m_caster->ToPlayer(), true);
}
}
void Spell::EffectChargeDest(SpellEffIndex /*effIndex*/)
@@ -4966,11 +4960,6 @@ void Spell::EffectChargeDest(SpellEffIndex /*effIndex*/)
if (effectHandleMode != SPELL_EFFECT_HANDLE_LAUNCH)
return;
if (m_caster->ToPlayer())
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(m_caster->ToPlayer(), true);
}
if (m_targets.HasDst())
{
Position pos = destTarget->GetPosition();
@@ -5162,7 +5151,6 @@ void Spell::EffectPullTowards(SpellEffIndex effIndex)
if (unitTarget->GetTypeId() == TYPEID_PLAYER)
{
sScriptMgr->AnticheatSetSkipOnePacketForASH(unitTarget->ToPlayer(), true);
sScriptMgr->AnticheatSetUnderACKmount(unitTarget->ToPlayer());
}
}