diff options
author | Ovah <dreadkiller@gmx.de> | 2020-11-17 23:41:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 23:41:15 +0100 |
commit | 4abbeb2a60370157bc9a72e5c566c1112ff904e9 (patch) | |
tree | a18a273371ddf4099dff118db0602c6cd1f3f619 /src/server/game/Instances/InstanceScript.cpp | |
parent | 850b88546ff958d751bf4c1962731610ddc95617 (diff) |
Core/Maps: add new FLAG_ALLIANCE_ONLY and FLAG_HORDE_ONLY for instance spawn groups (PR #25656)
Diffstat (limited to 'src/server/game/Instances/InstanceScript.cpp')
-rw-r--r-- | src/server/game/Instances/InstanceScript.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index 695bd33a52c..5d207925ece 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -249,6 +249,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) |