mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Ulduar flame leviathan (normal mode)
This commit is contained in:
@@ -175,6 +175,12 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
if (player->GetVehicle())
|
||||
{
|
||||
botAI->TellError("You cannot summon me while I'm on a vehicle");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!summoner->IsBeingTeleported() && !player->IsBeingTeleported())
|
||||
{
|
||||
float followAngle = GetFollowAngle();
|
||||
@@ -222,6 +228,7 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
|
||||
}
|
||||
|
||||
player->GetMotionMaster()->Clear();
|
||||
AI_VALUE(LastMovement&, "last movement").clear();
|
||||
player->TeleportTo(mapId, x, y, z, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user