Scripts/Naxxramas: Fix an edge case crash with people teleporting out of the dungeon during the Patchwerk encounter (tagging #20247)
This commit is contained in:
1 parent
ad30a56ead
commit
e89467ea58
1 file changed
+2
-2
@@ -126,11 +126,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