*Fix startup with libtrinityinterface.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-08-08 14:24:18 +02:00
parent a2c2bad94b
commit 08f1421ae1
2 changed files with 11 additions and 1 deletions

View File

@@ -287,6 +287,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 )
{