Permalink
Browse files

Core/Scripts: fix rotface ooze flood (thx to vincent-michael)

  • Loading branch information...
Star-lion committed Feb 23, 2012
1 parent ccbe209 commit 348ed1782f8d67cccf03aab3adca08d87c8ffdb6
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp
@@ -441,6 +441,10 @@ class spell_rotface_ooze_flood : public SpellScriptLoader
std::list<Creature*> triggers;
GetHitUnit()->GetCreatureListWithEntryInGrid(triggers, GetHitUnit()->GetEntry(), 12.5f);
+
+ if (triggers.empty())
+ return;
+
triggers.sort(Trinity::ObjectDistanceOrderPred(GetHitUnit()));
GetHitUnit()->CastSpell(triggers.back(), uint32(GetEffectValue()), false, NULL, NULL, GetOriginalCaster() ? GetOriginalCaster()->GetGUID() : 0);
}

0 comments on commit 348ed17

Please sign in to comment.