aboutsummaryrefslogtreecommitdiff
path: root/src/game/TotemAI.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-07 19:14:10 +0200
committerSpp <none@none>2010-04-07 19:14:10 +0200
commitd19e12708001fbef2308be0e8cb5375a2ac7af48 (patch)
tree09fc8f67a6197802e0512950f0b0a3438a9834e8 /src/game/TotemAI.cpp
parent2e127f7a30706dc1d40c65de22ff02851732da24 (diff)
Code style (game + scripts only):
"if(" --> "if (" --HG-- branch : trunk
Diffstat (limited to 'src/game/TotemAI.cpp')
-rw-r--r--src/game/TotemAI.cpp4
1 files changed, 2 insertions, 2 deletions
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) )
{