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)
This commit is contained in:
hondacrx
2024-02-27 13:46:44 -05:00
parent 30db565fec
commit ecf2ddeb5f
+2 -2
View File
@@ -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;