mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-21 12:37:07 +00:00
Added Null Checks
This commit is contained in:
@@ -705,9 +705,18 @@ void AnticheatMgr::BuildReport(Player* player, uint16 reportType)
|
||||
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
|
||||
dungdesert->SetDuration(-1);
|
||||
bgdesert->SetDuration(-1);
|
||||
silent->SetDuration(-1);
|
||||
if (dungdesert)// LFG_SPELL_DUNGEON_DESERTER
|
||||
{
|
||||
dungdesert->SetDuration(-1);
|
||||
}
|
||||
if (bgdesert)// BG_SPELL_DESERTER
|
||||
{
|
||||
bgdesert->SetDuration(-1);
|
||||
}
|
||||
if (silent)// SILENCED
|
||||
{
|
||||
silent->SetDuration(-1);
|
||||
}
|
||||
|
||||
if (sConfigMgr->GetOption<bool>("Anticheat.AnnounceJail", true))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user