aboutsummaryrefslogtreecommitdiff
path: root/src/game/TotemAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/TotemAI.cpp')
-rw-r--r--src/game/TotemAI.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/TotemAI.cpp b/src/game/TotemAI.cpp
index f96071e8bfc..6102d2ee4d2 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;
@@ -56,7 +56,7 @@ void TotemAI::EnterEvadeMode()
void
TotemAI::UpdateAI(const uint32 /*diff*/)
{
- if ( m_creature->ToTotem()->GetTotemType() != TOTEM_ACTIVE)
+ if (m_creature->ToTotem()->GetTotemType() != TOTEM_ACTIVE)
return;
if (!m_creature->isAlive() || m_creature->IsNonMeleeSpellCasted(false))
@@ -77,9 +77,9 @@ 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) )
+ m_creature->IsFriendlyTo(victim) || !victim->isVisibleForOrDetect(m_creature,false))
{
victim = NULL;
Trinity::NearestAttackableUnitInObjectRangeCheck u_check(m_creature, m_creature, max_range);