diff options
| author | Shauren <shauren.trinity@gmail.com> | 2011-06-30 09:31:46 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-06-30 09:31:46 +0200 |
| commit | 52f60df6a35dff522551e79a3069117480fe1348 (patch) | |
| tree | d818cd16ba700d7237c2ce8a1f71ec73c672d51a /src | |
| parent | 18a2d330a87371655b10f090748b62c7b09850bb (diff) | |
Scripts/Icecrown Citadel: Boiling Blood will not attempt to find a target if there isnt any
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp index 6fc60bdba09..d333b6e38f1 100755 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp @@ -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; |
