diff --git a/zone/spell_effects.cpp b/zone/spell_effects.cpp index dc4de2409..078827b78 100644 --- a/zone/spell_effects.cpp +++ b/zone/spell_effects.cpp @@ -186,10 +186,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial) buffs[buffslot].numhits = numhit; } - bool _IsPowerDistModSpell = false; - if (IsPowerDistModSpell(spell_id)) - _IsPowerDistModSpell = true; - else + if (!IsPowerDistModSpell(spell_id)) SetSpellPowerDistanceMod(0); // iterate through the effects in the spell @@ -204,7 +201,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial) if(spell_id == SPELL_LAY_ON_HANDS && caster && caster->GetAA(aaImprovedLayOnHands)) effect_value = GetMaxHP(); - if (_IsPowerDistModSpell && GetSpellPowerDistanceMod()) + if (GetSpellPowerDistanceMod()) effect_value = effect_value*(GetSpellPowerDistanceMod()/100); #ifdef SPELL_EFFECT_SPAM