*Changes in function ScriptedAI::DoSay - by Lightguard
--HG-- branch : trunk
This commit is contained in:
1 parent
5d842d667b
commit
89f66acc87
3 files changed
+8
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user