Jailing Feature Update

Deserter Buffs permanent until .anticheat parole is used on the player to release them. this will solve the issue of jailbreak thru queuing.
This commit is contained in:
MDIC
2022-04-13 13:15:53 -04:00
parent b78ce2399c
commit 54d016aab9
2 changed files with 9 additions and 4 deletions

View File

@@ -690,8 +690,10 @@ 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
player->AddAura(LFG_SPELL_DUNGEON_DESERTER, player); // LFG_SPELL_DUNGEON_DESERTER
player->AddAura(BG_SPELL_DESERTER, player); // BG_SPELL_DESERTER
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(2147483647 * IN_MILLISECONDS);
bgdesert->SetDuration(2147483647 * IN_MILLISECONDS);
if (sConfigMgr->GetOption<bool>("Anticheat.AnnounceJail", true))
{