fix(Core/Scripts): skip areatrigger scripts for gamemasters (#25196)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-03-23 10:02:15 -03:00
committed by GitHub
parent 4f363ac4bf
commit 3da6e30196
6 changed files with 6 additions and 15 deletions
+2 -1
View File
@@ -732,7 +732,8 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPacket& recv_data)
if (player->isDebugAreaTriggers)
ChatHandler(this).PSendSysMessage(LANG_DEBUG_AREATRIGGER_REACHED, triggerId);
if (sScriptMgr->OnAreaTrigger(player, atEntry))
// Skip areatrigger scripts for GMs unless debug areatriggers is enabled
if ((!player->IsGameMaster() || player->isDebugAreaTriggers) && sScriptMgr->OnAreaTrigger(player, atEntry))
return;
if (player->IsAlive())