*Changes in function ScriptedAI::DoSay - by Lightguard

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2008-12-27 21:27:41 +01:00
parent 5d842d667b
commit 89f66acc87
3 changed files with 8 additions and 3 deletions
+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);
}
+1 -1
View File
@@ -124,7 +124,7 @@ struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI
void DoCastSpell(Unit* who,SpellEntry const *spellInfo, bool triggered = false);
//Creature say
void DoSay(const char* text, uint32 language, Unit* target);
void DoSay(const char* text, uint32 language, Unit* target, bool SayEmote = false);
//Creature Yell
void DoYell(const char* text, uint32 language, Unit* target);