mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user