mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Movement: Enable MotionMaster::MovePath for players
This commit is contained in:
@@ -171,7 +171,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!pathid)
|
||||
if (!pathid || !sWaypointMgr->GetPath(pathid))
|
||||
{
|
||||
handler->PSendSysMessage("%s%s|r", "|cffff33ff", "No valid path number provided.");
|
||||
return true;
|
||||
|
||||
@@ -782,7 +782,7 @@ class boss_flame_leviathan_overload_device : public CreatureScript
|
||||
if (Unit* player = me->GetVehicle()->GetPassenger(SEAT_PLAYER))
|
||||
{
|
||||
me->GetVehicleBase()->CastSpell(player, SPELL_SMOKE_TRAIL, true);
|
||||
player->GetMotionMaster()->MoveKnockbackFrom(me->GetVehicleBase()->GetPosition(), 30, 30);
|
||||
player->KnockbackFrom(me->GetVehicleBase()->GetPosition(), 30, 30);
|
||||
player->ExitVehicle();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user