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:
@@ -4479,8 +4479,8 @@ namespace Game.Spells
|
|||||||
|
|
||||||
int charges = m_CastItem.GetSpellCharges(itemEffect.LegacySlotIndex);
|
int charges = m_CastItem.GetSpellCharges(itemEffect.LegacySlotIndex);
|
||||||
|
|
||||||
// item has charges left
|
// item has charges left for this slot
|
||||||
if (charges != 0)
|
if (charges != 0 && itemEffect.SpellID == m_spellInfo.Id)
|
||||||
{
|
{
|
||||||
if (charges > 0)
|
if (charges > 0)
|
||||||
--charges;
|
--charges;
|
||||||
|
|||||||
Reference in New Issue
Block a user