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*/)
|
void HandleEffectPeriodic(AuraEffect const* /*aurEff*/)
|
||||||
{
|
{
|
||||||
Unit* caster = GetCaster();
|
|
||||||
Unit* target = GetTarget();
|
Unit* target = GetTarget();
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
if (!caster)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (TargetList::iterator itr = listOfTargets.begin(); itr != listOfTargets.end(); ++itr)
|
for (TargetList::iterator itr = listOfTargets.begin(); itr != listOfTargets.end(); ++itr)
|
||||||
{
|
{
|
||||||
if (itr->first != target->GetGUID())
|
if (itr->first != target->GetGUID())
|
||||||
@@ -933,6 +929,7 @@ class spell_biting_cold : public SpellScriptLoader
|
|||||||
else
|
else
|
||||||
itr->second++;
|
itr->second++;
|
||||||
}
|
}
|
||||||
|
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user