Merge pull request #5392 from kandera/fix_rotface_ooze_flood

Scripts/Icecrown Citadel: Fix Rotface ooze flood (thx to vincent-michael)
This commit is contained in:
Shocker
2012-02-23 09:58:36 -08:00

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