Scripts/Icecrown Citadel: Boiling Blood will not attempt to find a target if there isnt any

This commit is contained in:
Shauren
2011-06-30 09:31:46 +02:00
parent 18a2d330a8
commit 52f60df6a3
@@ -1238,6 +1238,9 @@ class spell_deathbringer_boiling_blood : public SpellScriptLoader
void FilterTargets(std::list<Unit*>& unitList)
{
unitList.remove(GetCaster()->getVictim());
if (unitList.empty())
return;
std::list<Unit*>::iterator itr = unitList.begin();
std::advance(itr, urand(0, unitList.size() - 1));
Unit* target = *itr;