diff options
author | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
commit | 49d05ba9aa1cd5c1f3ae96546283e6d03a037ff7 (patch) | |
tree | f7e6135573366a686c1f527e16a0a7d42a7877ff /src/game/TotemAI.cpp | |
parent | d19e12708001fbef2308be0e8cb5375a2ac7af48 (diff) |
Code style (game + scripts only):
"( " --> "("
" )" --> ")"
--HG--
branch : trunk
Diffstat (limited to 'src/game/TotemAI.cpp')
-rw-r--r-- | src/game/TotemAI.cpp | 8 |
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); |