diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 3b177cfc57f..fc847e77874 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -5794,12 +5794,12 @@ void Spell::EffectFeedPet(SpellEffIndex effIndex) if (benefit <= 0) return; + ExecuteLogEffectDestroyItem(effIndex, foodItem->GetEntry()); + uint32 count = 1; - _player->DestroyItemCount(foodItem,count,true); + _player->DestroyItemCount(foodItem, count, true); // TODO: fix crash when a spell has two effects, both pointed at the same item target - ExecuteLogEffectDestroyItem(effIndex, foodItem->GetEntry()); - m_caster->CastCustomSpell(pet, m_spellInfo->EffectTriggerSpell[effIndex], &benefit, NULL, NULL, true); } |