Scripts/Ulduar: Caster check is not needed when we are not manipulating with caster

This commit is contained in:
Lopin
2011-06-13 23:39:03 +02:00
parent 3ae16e3fa4
commit 125bdc0d0a
@@ -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;
}