More hooks for Scripts/Modules (#270)

This commit is contained in:
3ndos
2016-12-07 03:12:01 -05:00
committed by Francesco Borzì
parent 440b7e731f
commit b7ee1a9f12
8 changed files with 255 additions and 14 deletions
+2
View File
@@ -1727,6 +1727,8 @@ void Spell::DoCreateItem(uint8 /*effIndex*/, uint32 itemId)
// send info to the client
player->SendNewItem(pItem, addNumber, true, SelfCast);
sScriptMgr->OnCreateItem(player, pItem, addNumber);
// we succeeded in creating at least one item, so a levelup is possible
if (SelfCast)