mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Scripts/Northrend: Malygos now uses modifiable threat list when teleporting after vortex. Fixes a crash. Closes #21315.
This commit is contained in:
@@ -1827,7 +1827,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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user