mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
*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
This commit is contained in:
@@ -1876,6 +1876,15 @@ bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets)
|
||||
return tmpscript->pItemUse(player,_Item,targets);
|
||||
}
|
||||
|
||||
TRINITY_DLL_EXPORT
|
||||
bool ItemExpire( Player *player, ItemPrototype const * _ItemProto)
|
||||
{
|
||||
Script *tmpscript = m_scripts[_ItemProto->ScriptId];
|
||||
if (!tmpscript || !tmpscript->pItemExpire) return true;
|
||||
|
||||
return tmpscript->pItemExpire(player,_ItemProto);
|
||||
}
|
||||
|
||||
TRINITY_DLL_EXPORT
|
||||
bool EffectDummyCreature(Unit *caster, uint32 spellId, uint32 effIndex, Creature *crTarget )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user