Core/SAI: SMART_ACTION_FLEE: print flee emote if param1 is set

This commit is contained in:
Nay committed 2011-09-04 18:51:16 +01:00
1 parent fd5ab97774
commit 3ccfb5fefb
5 files changed
+12 -1

No files matched your search

@@ -692,6 +692,8 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
return;
me->DoFleeToGetAssistance();
if (e.action.flee.withEmote)
sCreatureTextMgr->SendChatString(me, sObjectMgr->GetTrinityStringForDBCLocale(LANG_FLEE), CHAT_MSG_MONSTER_EMOTE);
sLog->outDebug(LOG_FILTER_DATABASE_AI, "SmartScript::ProcessAction:: SMART_ACTION_FLEE_FOR_ASSIST: Creature %u DoFleeToGetAssistance", me->GetGUIDLow());
break;
}