Skip to content

Commit

Permalink
Ulduar: Make Static Disruption more fair
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Jan 21, 2023
1 parent 529691e commit 5776ce5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ struct StaticDisruption : public SpellScript
unitList.push_back(utarget);
}
unitList.sort(TargetDistanceOrderFarAway(caster));
unitList.resize(std::min(uint32(unitList.size()), uint32(isRegularDifficulty ? 3 : 7)));
unitList.resize(std::min(uint32(unitList.size()), uint32(isRegularDifficulty ? 2 : 3)));
std::vector targetVector(unitList.begin(), unitList.end());
std::shuffle(targetVector.begin(), targetVector.end(), *GetRandomGenerator());
if (Unit* target = targetVector.front())
Expand Down

0 comments on commit 5776ce5

Please sign in to comment.