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

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

View File

@@ -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;
}