mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 06:29:50 -04:00
Replace tabs with spaces in more files.
--HG-- branch : trunk
This commit is contained in:
@@ -221,12 +221,12 @@ void ScriptedAI::DoCastSpell(Unit* who,SpellEntry const *spellInfo, bool trigger
|
||||
|
||||
void ScriptedAI::DoSay(const char* text, uint32 language, Unit* target, bool SayEmote)
|
||||
{
|
||||
if (target)
|
||||
{
|
||||
m_creature->Say(text, language, target->GetGUID());
|
||||
if(SayEmote)
|
||||
m_creature->HandleEmoteCommand(EMOTE_ONESHOT_TALK);
|
||||
}
|
||||
if (target)
|
||||
{
|
||||
m_creature->Say(text, language, target->GetGUID());
|
||||
if(SayEmote)
|
||||
m_creature->HandleEmoteCommand(EMOTE_ONESHOT_TALK);
|
||||
}
|
||||
else m_creature->Say(text, language, 0);
|
||||
}
|
||||
|
||||
@@ -751,8 +751,8 @@ Unit* FindCreature(uint32 entry, float range, Unit* Finder)
|
||||
if(!Finder)
|
||||
return NULL;
|
||||
Creature* target = NULL;
|
||||
Trinity::AllCreaturesOfEntryInRange check(Finder, entry, range);
|
||||
Trinity::CreatureSearcher<Trinity::AllCreaturesOfEntryInRange> searcher(target, check);
|
||||
Trinity::AllCreaturesOfEntryInRange check(Finder, entry, range);
|
||||
Trinity::CreatureSearcher<Trinity::AllCreaturesOfEntryInRange> searcher(target, check);
|
||||
Finder->VisitNearbyObject(range, searcher);
|
||||
return target;
|
||||
}
|
||||
@@ -762,7 +762,7 @@ GameObject* FindGameObject(uint32 entry, float range, Unit* Finder)
|
||||
if(!Finder)
|
||||
return NULL;
|
||||
GameObject* target = NULL;
|
||||
Trinity::AllGameObjectsWithEntryInGrid go_check(entry);
|
||||
Trinity::AllGameObjectsWithEntryInGrid go_check(entry);
|
||||
Trinity::GameObjectSearcher<Trinity::AllGameObjectsWithEntryInGrid> searcher(target, go_check);
|
||||
Finder->VisitNearbyGridObject(range, searcher);
|
||||
return target;
|
||||
|
||||
Reference in New Issue
Block a user