Core/Misc: 3.3.5a fixes

This commit is contained in:
Aokromes
2015-08-11 12:59:11 +02:00
parent 1be34f1d21
commit 5ceb04ed47
10 changed files with 91 additions and 78 deletions

View File

@@ -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:

View File

@@ -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();