mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 09:07:22 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user