mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Don't modify item charges in all slots on a single item spell cast
This commit is contained in:
@@ -5349,8 +5349,8 @@ void Spell::TakeCastItem()
|
||||
|
||||
int32 charges = m_CastItem->GetSpellCharges(itemEffect->LegacySlotIndex);
|
||||
|
||||
// item has charges left
|
||||
if (charges)
|
||||
// item has charges left for this slot
|
||||
if (charges && itemEffect->SpellID == int32(m_spellInfo->Id))
|
||||
{
|
||||
(charges > 0) ? --charges : ++charges; // abs(charges) less at 1 after use
|
||||
if (proto->GetMaxStackSize() == 1)
|
||||
|
||||
Reference in New Issue
Block a user