mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-18 16:09:37 +01:00
*Merge.
--HG-- branch : trunk
This commit is contained in:
@@ -59,7 +59,7 @@ TargetedMovementGenerator<T>::_setTargetLocation(T &owner)
|
||||
float x, y, z;
|
||||
if(!i_offset)
|
||||
{
|
||||
// to nearest random contact position
|
||||
// to nearest random contact position
|
||||
i_target->GetRandomContactPoint( &owner, x, y, z, 0, MELEE_RANGE - 0.5f );
|
||||
}
|
||||
else
|
||||
@@ -101,7 +101,7 @@ TargetedMovementGenerator<T>::Initialize(T &owner)
|
||||
|
||||
if (owner.GetTypeId() == TYPEID_UNIT && ((Creature*)&owner)->canFly())
|
||||
owner.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
|
||||
|
||||
|
||||
_setTargetLocation(owner);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user