From 7a5a75503305b3fdd0a68f3eba72dcd76756610a Mon Sep 17 00:00:00 2001 From: Trust Date: Sun, 25 Feb 2024 15:20:58 -0500 Subject: [PATCH] [Bug Fix] Cleanup NPC Mana Tap Logic Mana Tap rule logic was invalid - Cleaned up and simplified, either we care about npc mana or we dont. --- zone/spells.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index dffc4a2bd..c3ada7094 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -223,16 +223,7 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, CastingSlot slot, // check to see if target is a caster mob before performing a mana tap if(GetTarget() && IsManaTapSpell(spell_id)) { - if ( - GetTarget()->GetCasterClass() == 'N' && - ( - !RuleB(Spells, ManaTapsRequireNPCMana) || - ( - RuleB(Spells, ManaTapsRequireNPCMana) && - GetTarget()->GetMana() == 0 - ) - ) - ) { + if (RuleB(Spells, ManaTapsRequireNPCMana) && GetTarget()->GetMana() == 0) { InterruptSpell(TARGET_NO_MANA, 0x121, spell_id); return false; }