diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScriptMgr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h index 784a9e1cc93..392e0320be1 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h @@ -1316,6 +1316,15 @@ class SmartAIMgr } 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) { if (!sAreaTriggerStore.LookupEntry(entry)) |