Core/MovementGenerators: Removed pointless check

This commit is contained in:
Shauren
2012-02-24 22:43:12 +01:00
parent ae5ecb6ac0
commit f1f469481d
@@ -35,9 +35,6 @@ void HomeMovementGenerator<Creature>::Reset(Creature &)
void HomeMovementGenerator<Creature>::_setTargetLocation(Creature & owner) void HomeMovementGenerator<Creature>::_setTargetLocation(Creature & owner)
{ {
if (!&owner)
return;
if (owner.HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DISTRACTED)) if (owner.HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DISTRACTED))
return; return;