diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-02-05 01:38:56 +0100 |
---|---|---|
committer | Treeston <treeston.mmoc@gmail.com> | 2018-02-05 01:38:56 +0100 |
commit | 6bbc95f3a0078e5d121e7092a60fa85b24c725d9 (patch) | |
tree | 305a91f82873b68716880f04b2931ab056017f5d | |
parent | 4cb13af4faff0c1f9dbda2ab6a86882b4e4201a6 (diff) |
Scripts/Northrend: Malygos now uses modifiable threat list when teleporting after vortex. Fixes a crash. Closes #21315.
-rw-r--r-- | src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp index 0d4dd46ed99..a739f225a3d 100644 --- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp +++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp @@ -1825,7 +1825,8 @@ class spell_malygos_vortex_visual : public SpellScriptLoader { if (Creature* caster = GetCaster()->ToCreature()) { - for (ThreatReference const* ref : caster->GetThreatManager().GetUnsortedThreatList()) + // we need modifiable threat list here - SPELL_VORTEX_6 is a TELEPORT effect, which may stop combat + for (ThreatReference const* ref : caster->GetThreatManager().GetModifiableThreatList()) { if (Player* targetPlayer = ref->GetVictim()->ToPlayer()) { |