mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +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
|
|
@ -71,7 +71,7 @@ template<>
|
|||
void
|
||||
ConfusedMovementGenerator<Creature>::_InitSpecific(Creature &creature, bool &is_water_ok, bool &is_land_ok)
|
||||
{
|
||||
creature.RemoveMonsterMoveFlag(MONSTER_MOVE_WALK);
|
||||
creature.RemoveSplineFlag(SPLINEFLAG_WALKMODE);
|
||||
|
||||
is_water_ok = creature.canSwim();
|
||||
is_land_ok = creature.canWalk();
|
||||
|
|
@ -158,7 +158,7 @@ template<>
|
|||
void ConfusedMovementGenerator<Creature>::Finalize(Creature &unit)
|
||||
{
|
||||
unit.clearUnitState(UNIT_STAT_CONFUSED|UNIT_STAT_CONFUSED_MOVE);
|
||||
unit.AddMonsterMoveFlag(MONSTER_MOVE_WALK);
|
||||
unit.AddSplineFlag(SPLINEFLAG_WALKMODE);
|
||||
}
|
||||
|
||||
template void ConfusedMovementGenerator<Player>::Initialize(Player &player);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue