mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
fix
This commit is contained in:
parent
4b7fa0654c
commit
92a1abbbee
@ -186,10 +186,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
|||||||
buffs[buffslot].numhits = numhit;
|
buffs[buffslot].numhits = numhit;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool _IsPowerDistModSpell = false;
|
if (!IsPowerDistModSpell(spell_id))
|
||||||
if (IsPowerDistModSpell(spell_id))
|
|
||||||
_IsPowerDistModSpell = true;
|
|
||||||
else
|
|
||||||
SetSpellPowerDistanceMod(0);
|
SetSpellPowerDistanceMod(0);
|
||||||
|
|
||||||
// iterate through the effects in the spell
|
// 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))
|
if(spell_id == SPELL_LAY_ON_HANDS && caster && caster->GetAA(aaImprovedLayOnHands))
|
||||||
effect_value = GetMaxHP();
|
effect_value = GetMaxHP();
|
||||||
|
|
||||||
if (_IsPowerDistModSpell && GetSpellPowerDistanceMod())
|
if (GetSpellPowerDistanceMod())
|
||||||
effect_value = effect_value*(GetSpellPowerDistanceMod()/100);
|
effect_value = effect_value*(GetSpellPowerDistanceMod()/100);
|
||||||
|
|
||||||
#ifdef SPELL_EFFECT_SPAM
|
#ifdef SPELL_EFFECT_SPAM
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user