From 203dfec2a1d1d628469ed0d68fefac33c15e65d6 Mon Sep 17 00:00:00 2001 From: Ovah Date: Tue, 17 Nov 2020 23:41:15 +0100 Subject: Core/Maps: add new FLAG_ALLIANCE_ONLY and FLAG_HORDE_ONLY for instance spawn groups (PR #25656) (cherry picked from commit 4abbeb2a60370157bc9a72e5c566c1112ff904e9) --- src/server/game/Instances/InstanceScript.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/game/Instances/InstanceScript.cpp') diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index 8df7d06cdfb..04ac053231e 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -262,6 +262,9 @@ void InstanceScript::UpdateSpawnGroups() continue; if (!((1 << GetBossState(info.BossStateId)) & info.BossStates)) continue; + if (((instance->GetTeamIdInInstance() == TEAM_ALLIANCE) && (info.Flags & InstanceSpawnGroupInfo::FLAG_HORDE_ONLY)) + || ((instance->GetTeamIdInInstance() == TEAM_HORDE) && (info.Flags & InstanceSpawnGroupInfo::FLAG_ALLIANCE_ONLY))) + continue; if (info.Flags & InstanceSpawnGroupInfo::FLAG_BLOCK_SPAWN) curValue = FORCEBLOCK; else if (info.Flags & InstanceSpawnGroupInfo::FLAG_ACTIVATE_SPAWN) -- cgit v1.2.3