From 5909ca2a41d5b7c118c5ad245f1f4f2d4db8c7b9 Mon Sep 17 00:00:00 2001 From: Trust Date: Sun, 7 Jan 2024 02:36:42 -0500 Subject: [PATCH] [Bug Fix] Dire Charm Reset Added Druid and Necro Dire Charm to Failure Check --- zone/spells.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 4b5564973..e5c480b05 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -4027,6 +4027,11 @@ bool Mob::SpellOnTarget( // check immunities if (spelltar->IsImmuneToSpell(spell_id, this)) { + // If we tried with Dire Charm, we need to reset the timer. + if (IsClient() && (casting_spell_aa_id == aaDireCharm || casting_spell_aa_id == aaDireCharm2 || casting_spell_aa_id == aaDireCharm3)) { + StopCasting(); + } + //the above call does the message to the client if needed LogSpells("Spell [{}] can't take hold due to immunity [{}] -> [{}]", spell_id, GetName(), spelltar->GetName()); safe_delete(action_packet);