mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 08:00:48 +01:00
Core/Scripts: 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