Core/Script: Code style.

Signed-off-by: Gyx <[email protected]>
This commit is contained in:
Gyx
2012-03-16 19:40:57 +08:00
parent ddc0f5d7d6
commit bef1b0c402
55 changed files with 220 additions and 137 deletions
@@ -112,7 +112,8 @@ public:
void EnterCombat(Unit* /*who*/)
{
if (!victimGUID) return;
if (!victimGUID)
return;
}
void UpdateAI(const uint32 diff)
@@ -383,12 +383,11 @@ public:
void MoveInLineOfSight(Unit* who)
{
if (!who || me->getVictim()) return;
if (!who || me->getVictim())
return;
if (who->isInAccessiblePlaceFor(me) && me->IsValidAttackTarget(who) && me->IsWithinDistInMap(who, 45))
{
AttackStart(who);
}
}
void UpdateAI(const uint32 diff)