Oops, missed this (could have caused crashes)
This commit is contained in:
1 parent
7e2c7a6989
commit
d4df023e62
1 file changed
+3
@@ -490,6 +490,9 @@ class spell_rotface_mutated_infection : public SpellScriptLoader
|
||||
// remove targets with this aura already
|
||||
// tank is not on this list
|
||||
targets.remove_if(Trinity::UnitAuraCheck(true, GetSpellInfo()->Id));
|
||||
if (targets.empty())
|
||||
return;
|
||||
|
||||
std::list<Unit*>::iterator itr = targets.begin();
|
||||
std::advance(itr, urand(0, targets.size() - 1));
|
||||
Unit* target = *itr;
|
||||
|
||||
Reference in new issue
Block a user