mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-02-07 20:51:11 +00:00
Update: Review Transfer
Thanks to @jackpozi for more further code review on the tc counterpart of the module that is also brought over to this module. Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
@@ -702,18 +702,16 @@ void AnticheatMgr::BuildReport(Player* player, uint16 reportType)
|
|||||||
player->TeleportTo(loc);
|
player->TeleportTo(loc);
|
||||||
player->SetHomebind(loc, 876); // GM Jail Homebind location
|
player->SetHomebind(loc, 876); // GM Jail Homebind location
|
||||||
player->CastSpell(player, SHACKLES); // Shackle him in place to ensure no exploit happens for jail break attempt
|
player->CastSpell(player, SHACKLES); // Shackle him in place to ensure no exploit happens for jail break attempt
|
||||||
Aura* dungdesert = player->AddAura(LFG_SPELL_DUNGEON_DESERTER, player);// LFG_SPELL_DUNGEON_DESERTER
|
|
||||||
Aura* bgdesert = player->AddAura(BG_SPELL_DESERTER, player);// BG_SPELL_DESERTER
|
if (Aura* dungdesert = player->AddAura(LFG_SPELL_DUNGEON_DESERTER, player))// LFG_SPELL_DUNGEON_DESERTER
|
||||||
Aura* silent = player->AddAura(SILENCED, player);// SILENCED
|
|
||||||
if (dungdesert)// LFG_SPELL_DUNGEON_DESERTER
|
|
||||||
{
|
{
|
||||||
dungdesert->SetDuration(-1);
|
dungdesert->SetDuration(-1);
|
||||||
}
|
}
|
||||||
if (bgdesert)// BG_SPELL_DESERTER
|
if (Aura* bgdesert = player->AddAura(BG_SPELL_DESERTER, player))// BG_SPELL_DESERTER
|
||||||
{
|
{
|
||||||
bgdesert->SetDuration(-1);
|
bgdesert->SetDuration(-1);
|
||||||
}
|
}
|
||||||
if (silent)// SILENCED
|
if (Aura* silent = player->AddAura(SILENCED, player))// SILENCED
|
||||||
{
|
{
|
||||||
silent->SetDuration(-1);
|
silent->SetDuration(-1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,18 +138,16 @@ public:
|
|||||||
pTarget->TeleportTo(loc);
|
pTarget->TeleportTo(loc);
|
||||||
pTarget->SetHomebind(loc, 876); // GM Jail Homebind location
|
pTarget->SetHomebind(loc, 876); // GM Jail Homebind location
|
||||||
pTarget->CastSpell(pTarget, SHACKLES); // Shackle him in place to ensure no exploit happens for jail break attempt
|
pTarget->CastSpell(pTarget, SHACKLES); // Shackle him in place to ensure no exploit happens for jail break attempt
|
||||||
Aura* dungdesert = pTarget->AddAura(LFG_SPELL_DUNGEON_DESERTER, pTarget);// LFG_SPELL_DUNGEON_DESERTER
|
|
||||||
Aura* bgdesert = pTarget->AddAura(BG_SPELL_DESERTER, pTarget);// BG_SPELL_DESERTER
|
if (Aura* dungdesert = pTarget->AddAura(LFG_SPELL_DUNGEON_DESERTER, pTarget))// LFG_SPELL_DUNGEON_DESERTER
|
||||||
Aura* silent = pTarget->AddAura(SILENCED, pTarget);// SILENC
|
|
||||||
if (dungdesert)// LFG_SPELL_DUNGEON_DESERTER
|
|
||||||
{
|
{
|
||||||
dungdesert->SetDuration(-1);
|
dungdesert->SetDuration(-1);
|
||||||
}
|
}
|
||||||
if (bgdesert)// BG_SPELL_DESERTER
|
if (Aura* bgdesert = pTarget->AddAura(BG_SPELL_DESERTER, pTarget))// BG_SPELL_DESERTER
|
||||||
{
|
{
|
||||||
bgdesert->SetDuration(-1);
|
bgdesert->SetDuration(-1);
|
||||||
}
|
}
|
||||||
if (silent)// SILENCED
|
if (Aura* silent = pTarget->AddAura(SILENCED, pTarget))// SILENCED
|
||||||
{
|
{
|
||||||
silent->SetDuration(-1);
|
silent->SetDuration(-1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user