Core/Spells: Fixed implementation of Spell::EffectRechargeManaGem when it is not the first effect on a spell (0 cases, sync code between branches)
This commit is contained in:
1 parent
39b5168dbb
commit
16aef47f61
1 file changed
+2
-2
@@ -5563,7 +5563,7 @@ void Spell::EffectCastButtons(SpellEffIndex effIndex)
|
||||
}
|
||||
}
|
||||
|
||||
void Spell::EffectRechargeManaGem(SpellEffIndex /*effIndex*/)
|
||||
void Spell::EffectRechargeManaGem(SpellEffIndex effIndex)
|
||||
{
|
||||
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
|
||||
return;
|
||||
@@ -5576,7 +5576,7 @@ void Spell::EffectRechargeManaGem(SpellEffIndex /*effIndex*/)
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
uint32 item_id = m_spellInfo->Effects[EFFECT_0].ItemType;
|
||||
uint32 item_id = m_spellInfo->Effects[effIndex].ItemType;
|
||||
|
||||
ItemTemplate const* pProto = sObjectMgr->GetItemTemplate(item_id);
|
||||
if (!pProto)
|
||||
|
||||
Reference in new issue
Block a user