Add Casting Restrictions to SE_CurrentHPOnce

This commit is contained in:
Michael Cook (mackal) committed 2015-11-03 14:16:36 -05:00
1 parent 835fbb81cb
commit e7184f402d
1 file changed
+4
+4
View File
@@ -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;