From 99f8e6cef51dc850f10afad2cf2541e231321b4f Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Mon, 27 Mar 2023 16:57:08 -0400 Subject: [PATCH] [Bug Fix] Fix for NPCs having spells interrupted. (#3150) --- zone/spells.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 0a63370b8..f33858996 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -437,9 +437,10 @@ bool Mob::DoCastSpell(uint16 spell_id, uint16 target_id, CastingSlot slot, //this is a special case for NPCs with no mana... if (IsNPC() && my_curmana == my_maxmana) { mana_cost = 0; + } else { + DoSpellInterrupt(spell_id, mana_cost, my_curmana); + return false; } - DoSpellInterrupt(spell_id, mana_cost, my_curmana); - return false; } }