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

This commit is contained in:
Kandera
2012-02-23 12:45:04 -05:00
parent ccbe209ded
commit 348ed1782f

View File

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