mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Add Casting Restrictions to SE_CurrentHPOnce
This commit is contained in:
parent
835fbb81cb
commit
e7184f402d
@ -283,9 +283,13 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
|
||||
//do any AAs apply to these spells?
|
||||
if(dmg < 0) {
|
||||
if (!PassCastRestriction(false, spells[spell_id].base2[i], true))
|
||||
break;
|
||||
dmg = -dmg;
|
||||
Damage(caster, dmg, spell_id, spell.skill, false, buffslot, false);
|
||||
} else {
|
||||
if (!PassCastRestriction(false, spells[spell_id].base2[i], true))
|
||||
break;
|
||||
HealDamage(dmg, caster);
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user