mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
Codestyle Correction
-1 does it better.
This commit is contained in:
@@ -692,8 +692,8 @@ void AnticheatMgr::BuildReport(Player* player, uint16 reportType)
|
||||
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
|
||||
dungdesert->SetDuration(-1000 * IN_MILLISECONDS);
|
||||
bgdesert->SetDuration(-1000 * IN_MILLISECONDS);
|
||||
dungdesert->SetDuration(-1);
|
||||
bgdesert->SetDuration(-1);
|
||||
|
||||
if (sConfigMgr->GetOption<bool>("Anticheat.AnnounceJail", true))
|
||||
{
|
||||
|
||||
@@ -139,8 +139,8 @@ public:
|
||||
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
|
||||
dungdesert->SetDuration(-1000 * IN_MILLISECONDS);
|
||||
bgdesert->SetDuration(-1000 * IN_MILLISECONDS);
|
||||
dungdesert->SetDuration(-1);
|
||||
bgdesert->SetDuration(-1);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user