Core/Conditions: Added conditions for AreaTriggers (AreaTrigger.dbc) (#27174)

Cherry-picked from 6ebd592
This commit is contained in:
ModoX
2021-10-26 22:58:49 +02:00
committed by Shauren
parent 420cbd7396
commit 7e28ee4421
3 changed files with 13 additions and 1 deletions

View File

@@ -621,6 +621,9 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPacket& recvData)
if (player->isDebugAreaTriggers)
ChatHandler(player->GetSession()).PSendSysMessage(LANG_DEBUG_AREATRIGGER_REACHED, triggerId);
if (!sConditionMgr->IsObjectMeetingNotGroupedConditions(CONDITION_SOURCE_TYPE_AREATRIGGER_CLIENT_TRIGGERED, atEntry->ID, player))
return;
if (sScriptMgr->OnAreaTrigger(player, atEntry))
return;