aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-11-18 03:42:01 -0300
committerjoschiwald <joschiwald.trinity@gmail.com>2018-01-13 15:51:11 +0100
commit843a190052d2060f88bf5190e346b0444fc92369 (patch)
tree22c8f0e91d7946a514355c39fb338f56e7aa947a /src
parent90dbf26e12542ec1279de91e169841a73c217ed1 (diff)
Core/Spell: register items received through SPELL_EFFECT_SUMMON_CHANGE_ITEM for quest credit
- Also sends proper SMSG_ITEM_PUSH_RESULT packet Closes #3505 (cherry picked from commit 503259e6fe0a1e6328090a5a2e88832b6a017516)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index e92f2c9a814..e81d7ef9b8c 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -1874,6 +1874,8 @@ void Spell::EffectSummonChangeItem(SpellEffIndex /*effIndex*/)
m_castItemLevel = -1;
player->StoreItem(dest, pNewItem, true);
+ player->SendNewItem(pNewItem, 1, true, false);
+ player->ItemAddedQuestCheck(newitemid, 1);
return;
}
}
@@ -1920,6 +1922,8 @@ void Spell::EffectSummonChangeItem(SpellEffIndex /*effIndex*/)
player->EquipItem(dest, pNewItem, true);
player->AutoUnequipOffhandIfNeed();
+ player->SendNewItem(pNewItem, 1, true, false);
+ player->ItemAddedQuestCheck(newitemid, 1);
return;
}
}