diff options
author | QAston <none@none> | 2009-08-04 01:44:14 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-04 01:44:14 +0200 |
commit | 2e34af64cf83d79b7352636da71b60132b512106 (patch) | |
tree | cea5dcc663fed54b74f728c3af730b47da0e9096 /src/game/Item.cpp | |
parent | 29c9d709b908bae35b03dc24e5ba64481c1d547e (diff) |
*Allow ItemExpire events to be scripted.
*Add .debug itemexpire command
*Add script for Disgusting Jar and Mysterious Egg - original patch by Elron.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r-- | src/game/Item.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 2277637701a..484fa766da0 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -25,6 +25,7 @@ #include "Database/DatabaseEnv.h" #include "ItemEnchantmentMgr.h" #include "SpellMgr.h" +#include "ScriptCalls.h" void AddItemsSetItem(Player*player,Item *item) { @@ -285,6 +286,7 @@ void Item::UpdateDuration(Player* owner, uint32 diff) if (GetUInt32Value(ITEM_FIELD_DURATION)<=diff) { owner->DestroyItem(GetBagSlot(), GetSlot(), true); + Script->ItemExpire(owner, GetProto()); return; } |