mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 00:36:07 +00:00
chore(Core/Player): remove unused AnticheatSetSkipOnePacketForASH() function (#17947)
This commit is contained in:
committed by
GitHub
parent
4d935d6d8a
commit
ac676f87ab
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user