Core/MovementGenerators: Removed pointless check
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user