mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Get rid of monster movement flags, since it's really spline flags.
Thanks to Ralek for research.
This commit is contained in:
parent
4a3081e7d5
commit
db547a008a
20 changed files with 206 additions and 182 deletions
|
|
@ -31,10 +31,10 @@ void PointMovementGenerator<T>::Initialize(T &unit)
|
|||
unit.StopMoving();
|
||||
unit.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING_MOVE);
|
||||
Traveller<T> traveller(unit);
|
||||
i_destinationHolder.SetDestination(traveller,i_x,i_y,i_z);
|
||||
i_destinationHolder.SetDestination(traveller, i_x, i_y, i_z);
|
||||
|
||||
if (unit.GetTypeId() == TYPEID_UNIT && ((Creature*)&unit)->canFly())
|
||||
((Creature&)unit).AddMonsterMoveFlag(MONSTER_MOVE_FLY);
|
||||
((Creature&)unit).AddSplineFlag(SPLINEFLAG_UNKNOWN7);
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue