Merge pull request #15058 from Golrag/rorface
Scripts/Rotface: Fix Ooze flood targets. Fixes #15031
This commit is contained in:
commit
eb2e8f873a
3 files changed
+10
-3
No files matched your search
@@ -205,7 +205,7 @@ struct RotfaceHeightCheck
|
||||
|
||||
bool operator()(Creature* stalker) const
|
||||
{
|
||||
return stalker->GetPositionZ() < _rotface->GetPositionZ() + 5.0f;
|
||||
return stalker->GetPositionZ() > _rotface->GetPositionZ() + 5.0f;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -480,8 +480,8 @@ class spell_rotface_ooze_flood : public SpellScriptLoader
|
||||
targets.sort(Trinity::ObjectDistanceOrderPred(GetCaster()));
|
||||
|
||||
// .resize() runs pop_back();
|
||||
if (targets.size() > 4)
|
||||
targets.resize(4);
|
||||
if (targets.size() > 5)
|
||||
targets.resize(5);
|
||||
|
||||
while (targets.size() > 2)
|
||||
targets.pop_front();
|
||||
|
||||
Reference in new issue
Block a user