From 63ae7ac3157e316f679c972d349912de588f84c7 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 3 Nov 2015 14:15:55 -0500 Subject: [PATCH] Add Casting Restrictions to SE_CurrentHP (DoTs) buff processing --- zone/spell_effects.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/spell_effects.cpp b/zone/spell_effects.cpp index a0f2aa8ee..f96ac88fd 100644 --- a/zone/spell_effects.cpp +++ b/zone/spell_effects.cpp @@ -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.