mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-04 19:43:48 +00:00
fix(Scripts/BlackMorass): Adds should walk towards Medivh. (#14945)
This commit is contained in:
@@ -65,7 +65,7 @@ void HomeMovementGenerator<Creature>::_setTargetLocation(Creature* owner)
|
||||
|
||||
owner->UpdateAllowedPositionZ(x, y, z);
|
||||
init.MoveTo(x, y, z, DisableMgr::IsPathfindingEnabled(owner->FindMap()), true);
|
||||
init.SetWalk(false);
|
||||
init.SetWalk(_walk);
|
||||
init.Launch();
|
||||
|
||||
arrived = false;
|
||||
|
||||
@@ -29,7 +29,7 @@ template <>
|
||||
class HomeMovementGenerator<Creature> : public MovementGeneratorMedium< Creature, HomeMovementGenerator<Creature> >
|
||||
{
|
||||
public:
|
||||
HomeMovementGenerator() : arrived(false), i_recalculateTravel(false) {}
|
||||
HomeMovementGenerator(bool walk) : arrived(false), i_recalculateTravel(false), _walk(walk) {}
|
||||
~HomeMovementGenerator() {}
|
||||
|
||||
void DoInitialize(Creature*);
|
||||
@@ -43,5 +43,6 @@ private:
|
||||
void _setTargetLocation(Creature*);
|
||||
bool arrived : 1;
|
||||
bool i_recalculateTravel : 1;
|
||||
bool _walk;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user