Add Casting Restrictions to SE_CurrentHP (DoTs) buff processing

This commit is contained in:
Michael Cook (mackal) 2015-11-03 14:15:55 -05:00
parent e7184f402d
commit 63ae7ac315

View File

@ -3433,6 +3433,8 @@ void Mob::DoBuffTic(const Buffs_Struct &buff, int slot, Mob *caster)
switch (effect) {
case SE_CurrentHP: {
if (!PassCastRestriction(false, spells[buff.spellid].base2[i], true))
break;
effect_value = CalcSpellEffectValue(buff.spellid, i, buff.casterlevel, buff.instrument_mod,
caster, buff.ticsremaining);
// Handle client cast DOTs here.