[7672] Move ReceiveEmote from script API to AI API. Author: VladimirMangos

This is also fix triggering ReceiveEmote for EventAI broken at it move to core.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-15 17:29:33 -05:00
parent bf7b203e86
commit c5310844db
8 changed files with 15 additions and 31 deletions

View File

@@ -1831,15 +1831,6 @@ bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets)
return tmpscript->pItemUse(player,_Item,targets);
}
TRINITY_DLL_EXPORT
bool ReceiveEmote( Player *player, Creature *_Creature, uint32 emote )
{
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
if (!tmpscript || !tmpscript->pReceiveEmote) return false;
return tmpscript->pReceiveEmote(player, _Creature, emote);
}
TRINITY_DLL_EXPORT
bool EffectDummyCreature(Unit *caster, uint32 spellId, uint32 effIndex, Creature *crTarget )
{