Core/SAI: Add IsEmoteValid back for looking up non-text emotes

This commit is contained in:
runningnak3d committed 2011-02-13 20:39:53 -07:00
1 parent 27f5d396a2
commit 2d9ecceae3
1 file changed
+9
@@ -1316,6 +1316,15 @@ class SmartAIMgr
} }
return true; return true;
} }
inline bool IsEmoteValid(SmartScriptHolder e, uint32 entry)
{
if (!sEmotesStore.LookupEntry(entry))
{
sLog->outErrorDb("SmartAIMgr: Entry %d SourceType %u Event %u Action %u uses non-existent Emote entry %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), entry);
return false;
}
return true;
}
inline bool IsAreaTriggerValid(SmartScriptHolder e, uint32 entry) inline bool IsAreaTriggerValid(SmartScriptHolder e, uint32 entry)
{ {
if (!sAreaTriggerStore.LookupEntry(entry)) if (!sAreaTriggerStore.LookupEntry(entry))