mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Naxxramas: Fix an edge case crash with people teleporting out of the dungeon during the Patchwerk encounter (tagging #20247)
(cherry picked from commit 50e8de103b)
This commit is contained in:
@@ -131,11 +131,11 @@ public:
|
||||
|
||||
if ((*it)->GetVictim() != currentVictim)
|
||||
secondThreat = *it;
|
||||
if ((!secondThreat || Is25ManRaid()) && (++it != end))
|
||||
if ((!secondThreat || Is25ManRaid()) && (++it != end && (*it)->IsAvailable()))
|
||||
{
|
||||
if ((*it)->GetVictim() != currentVictim)
|
||||
(secondThreat ? thirdThreat : secondThreat) = *it;
|
||||
if (!thirdThreat && Is25ManRaid() && (++it != end))
|
||||
if (!thirdThreat && Is25ManRaid() && (++it != end && (*it)->IsAvailable()))
|
||||
thirdThreat = *it;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user