Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 348ed1782f8d67cccf03aab3adca08d87c8ffdb6 1 parent ccbe209
@kandera kandera authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp
View
4 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.