*Changes in function ScriptedAI::DoSay - by Lightguard

--HG--
branch : trunk
This commit is contained in:
Blaymoira committed 2008-12-27 21:27:41 +01:00
1 parent 5d842d667b
commit 89f66acc87
3 files changed
+8 -3

No files matched your search

+7 -2
View File
@@ -236,9 +236,14 @@ void ScriptedAI::DoCastSpell(Unit* who,SpellEntry const *spellInfo, bool trigger
m_creature->CastSpell(who, spellInfo, triggered);
}
void ScriptedAI::DoSay(const char* text, uint32 language, Unit* target)
void ScriptedAI::DoSay(const char* text, uint32 language, Unit* target, bool SayEmote)
{
if (target) m_creature->Say(text, language, target->GetGUID());
if (target)
{
m_creature->Say(text, language, target->GetGUID());
if(SayEmote)
m_creature->HandleEmoteCommand(EMOTE_ONESHOT_TALK);
}
else m_creature->Say(text, language, 0);
}