This commit is contained in:
KayenEQ 2014-08-03 16:36:44 -04:00
parent 4b7fa0654c
commit 92a1abbbee

View File

@ -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