From 71a07e2eb91b6e41385d5861f96bac4e66c06841 Mon Sep 17 00:00:00 2001 From: MDIC Date: Wed, 13 Apr 2022 18:35:42 -0400 Subject: [PATCH] Codestyle Correction -1 does it better. --- src/AnticheatMgr.cpp | 4 ++-- src/cs_anticheat.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 3a16315..095f384 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -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("Anticheat.AnnounceJail", true)) { diff --git a/src/cs_anticheat.cpp b/src/cs_anticheat.cpp index cb7c028..2b5f187 100644 --- a/src/cs_anticheat.cpp +++ b/src/cs_anticheat.cpp @@ -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; }