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:
MDIC
2022-04-18 11:34:41 -04:00
parent 250afdffeb
commit 7fb3d70afe
2 changed files with 8 additions and 12 deletions

View File

@@ -702,18 +702,16 @@ void AnticheatMgr::BuildReport(Player* player, uint16 reportType)
player->TeleportTo(loc);
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
Aura* dungdesert = player->AddAura(LFG_SPELL_DUNGEON_DESERTER, player);// LFG_SPELL_DUNGEON_DESERTER
Aura* bgdesert = player->AddAura(BG_SPELL_DESERTER, player);// BG_SPELL_DESERTER
Aura* silent = player->AddAura(SILENCED, player);// SILENCED
if (dungdesert)// LFG_SPELL_DUNGEON_DESERTER
if (Aura* dungdesert = player->AddAura(LFG_SPELL_DUNGEON_DESERTER, player))// LFG_SPELL_DUNGEON_DESERTER
{
dungdesert->SetDuration(-1);
}
if (bgdesert)// BG_SPELL_DESERTER
if (Aura* bgdesert = player->AddAura(BG_SPELL_DESERTER, player))// BG_SPELL_DESERTER
{
bgdesert->SetDuration(-1);
}
if (silent)// SILENCED
if (Aura* silent = player->AddAura(SILENCED, player))// SILENCED
{
silent->SetDuration(-1);
}

View File

@@ -138,18 +138,16 @@ public:
pTarget->TeleportTo(loc);
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
Aura* dungdesert = pTarget->AddAura(LFG_SPELL_DUNGEON_DESERTER, pTarget);// LFG_SPELL_DUNGEON_DESERTER
Aura* bgdesert = pTarget->AddAura(BG_SPELL_DESERTER, pTarget);// BG_SPELL_DESERTER
Aura* silent = pTarget->AddAura(SILENCED, pTarget);// SILENC
if (dungdesert)// LFG_SPELL_DUNGEON_DESERTER
if (Aura* dungdesert = pTarget->AddAura(LFG_SPELL_DUNGEON_DESERTER, pTarget))// LFG_SPELL_DUNGEON_DESERTER
{
dungdesert->SetDuration(-1);
}
if (bgdesert)// BG_SPELL_DESERTER
if (Aura* bgdesert = pTarget->AddAura(BG_SPELL_DESERTER, pTarget))// BG_SPELL_DESERTER
{
bgdesert->SetDuration(-1);
}
if (silent)// SILENCED
if (Aura* silent = pTarget->AddAura(SILENCED, pTarget))// SILENCED
{
silent->SetDuration(-1);
}