Core/Spells: Don't modify item charges in all slots on a single item spell cast

(cherry picked from commit 9ecb93f34d)
This commit is contained in:
Shauren
2024-02-26 14:39:16 +01:00
parent 2064bcb5f7
commit 75cbafd83a

View File

@@ -4695,8 +4695,8 @@ void Spell::TakeCastItem()
int32 charges = m_CastItem->GetSpellCharges(i);
// item has charges left
if (charges)
// item has charges left for this slot
if (charges && proto->Spells[i].SpellId == int32(m_spellInfo->Id))
{
(charges > 0) ? --charges : ++charges; // abs(charges) less at 1 after use
if (proto->Stackable == 1)