From d19e12708001fbef2308be0e8cb5375a2ac7af48 Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 7 Apr 2010 19:14:10 +0200 Subject: Code style (game + scripts only): "if(" --> "if (" --HG-- branch : trunk --- src/game/TotemAI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/TotemAI.cpp') diff --git a/src/game/TotemAI.cpp b/src/game/TotemAI.cpp index 25b40d9f7ee..f96071e8bfc 100644 --- a/src/game/TotemAI.cpp +++ b/src/game/TotemAI.cpp @@ -32,7 +32,7 @@ int TotemAI::Permissible(const Creature *creature) { - if( creature->isTotem() ) + if ( creature->isTotem() ) return PERMIT_BASE_PROACTIVE; return PERMIT_BASE_NO; @@ -77,7 +77,7 @@ TotemAI::UpdateAI(const uint32 /*diff*/) Unit* victim = i_victimGuid ? ObjectAccessor::GetUnit(*m_creature, i_victimGuid) : NULL; // Search victim if no, not attackable, or out of range, or friendly (possible in case duel end) - if( !victim || + if ( !victim || !victim->isTargetableForAttack() || !m_creature->IsWithinDistInMap(victim, max_range) || m_creature->IsFriendlyTo(victim) || !victim->isVisibleForOrDetect(m_creature,false) ) { -- cgit v1.2.3