mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Core/Conditions: Added conditions for AreaTriggers (AreaTrigger.dbc) (#27174)
Cherry-picked from 6ebd592
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user