Scripts/Ulduar: Caster check is not needed when we are not manipulating with caster
This commit is contained in:
@@ -909,13 +909,9 @@ class spell_biting_cold : public SpellScriptLoader
|
||||
|
||||
void HandleEffectPeriodic(AuraEffect const* /*aurEff*/)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
Unit* target = GetTarget();
|
||||
bool found = false;
|
||||
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
for (TargetList::iterator itr = listOfTargets.begin(); itr != listOfTargets.end(); ++itr)
|
||||
{
|
||||
if (itr->first != target->GetGUID())
|
||||
@@ -933,6 +929,7 @@ class spell_biting_cold : public SpellScriptLoader
|
||||
else
|
||||
itr->second++;
|
||||
}
|
||||
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user