From ecf2ddeb5ff7f4ca721c6de130cc375d27ed2e02 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 27 Feb 2024 13:46:44 -0500 Subject: [PATCH] Core/Spells: Don't modify item charges in all slots on a single item spell cast Port From (https://github.com/TrinityCore/TrinityCore/commit/9ecb93f34d7ff05feea9ea09faaba1af73a40d0d) --- Source/Game/Spells/Spell.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 08ce9724c..e8a0281bf 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -4479,8 +4479,8 @@ namespace Game.Spells int charges = m_CastItem.GetSpellCharges(itemEffect.LegacySlotIndex); - // item has charges left - if (charges != 0) + // item has charges left for this slot + if (charges != 0 && itemEffect.SpellID == m_spellInfo.Id) { if (charges > 0) --charges;