Add Casting Restrictions to SE_CurrentHPOnce

This commit is contained in:
Michael Cook (mackal) 2015-11-03 14:13:56 -05:00
parent 835fbb81cb
commit e7184f402d

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;