Core/Spells: Don't modify item charges in all slots on a single item spell cast
This commit is contained in:
1 parent
5d22ddd499
commit
462b1774a9
1 file changed
+2
-2
@@ -5240,8 +5240,8 @@ void Spell::TakeCastItem()
|
|||||||
|
|
||||||
int32 charges = m_CastItem->GetSpellCharges(i);
|
int32 charges = m_CastItem->GetSpellCharges(i);
|
||||||
|
|
||||||
// item has charges left
|
// item has charges left for this slot
|
||||||
if (charges)
|
if (charges && proto->Effects[i].SpellID == m_spellInfo->Id)
|
||||||
{
|
{
|
||||||
(charges > 0) ? --charges : ++charges; // abs(charges) less at 1 after use
|
(charges > 0) ? --charges : ++charges; // abs(charges) less at 1 after use
|
||||||
if (proto->GetMaxStackSize() == 1)
|
if (proto->GetMaxStackSize() == 1)
|
||||||
|
|||||||
Reference in new issue
Block a user