Skip to content

Commit

Permalink
Core/Spells: Don't modify item charges in all slots on a single item …
Browse files Browse the repository at this point in the history
…spell cast

(cherry picked from commit 9ecb93f34d7ff05feea9ea09faaba1af73a40d0d)
  • Loading branch information
Shauren committed Feb 26, 2024
1 parent 2064bcb commit 75cbafd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75cbafd

Please sign in to comment.