diff options
author | maximius <none@none> | 2009-11-19 03:53:49 -0800 |
---|---|---|
committer | maximius <none@none> | 2009-11-19 03:53:49 -0800 |
commit | 7ad284bd33b95ea40e2c0f972d843e55505c6f63 (patch) | |
tree | d898296ac295a750e29942e74b17c8d32a48dba9 /src/game/PassiveAI.cpp | |
parent | 9953ff49b819ac2f0abf6ad08711f2193d9e9861 (diff) |
*Some cleanup.
--HG--
branch : trunk
Diffstat (limited to 'src/game/PassiveAI.cpp')
-rw-r--r-- | src/game/PassiveAI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/PassiveAI.cpp b/src/game/PassiveAI.cpp index 65d424e7bed..63022e8cf66 100644 --- a/src/game/PassiveAI.cpp +++ b/src/game/PassiveAI.cpp @@ -28,7 +28,7 @@ NullCreatureAI::NullCreatureAI(Creature *c) : CreatureAI(c) { me->SetReactState( void PassiveAI::UpdateAI(const uint32) { - if(me->isInCombat() && me->getAttackers().empty()) + if (me->isInCombat() && me->getAttackers().empty()) EnterEvadeMode(); } @@ -63,19 +63,19 @@ void PossessedAI::KilledUnit(Unit* victim) void CritterAI::DamageTaken(Unit *done_by, uint32 &) { - if(!me->hasUnitState(UNIT_STAT_FLEEING)) + if (!me->hasUnitState(UNIT_STAT_FLEEING)) me->SetControlled(true, UNIT_STAT_FLEEING); } void CritterAI::EnterEvadeMode() { - if(me->hasUnitState(UNIT_STAT_FLEEING)) + if (me->hasUnitState(UNIT_STAT_FLEEING)) me->SetControlled(false, UNIT_STAT_FLEEING); CreatureAI::EnterEvadeMode(); } void TriggerAI::IsSummonedBy(Unit *summoner) { - if(me->m_spells[0]) + if (me->m_spells[0]) me->CastSpell(me, me->m_spells[0], false, 0, 0, summoner->GetGUID()); } |