mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-13 15:23:46 +00:00
- Added Auriaya fall from floor protection (#1318)
This commit is contained in:
@@ -1485,6 +1485,23 @@ bool KologarnCrunchArmorAction::Execute(Event event)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AuriayaFallFromFloorAction::Execute(Event event)
|
||||
{
|
||||
Player* master = botAI->GetMaster();
|
||||
|
||||
if (!master)
|
||||
return false;
|
||||
|
||||
return bot->TeleportTo(bot->GetMapId(), master->GetPositionX(), master->GetPositionY(), master->GetPositionZ(),
|
||||
master->GetOrientation());
|
||||
}
|
||||
|
||||
bool AuriayaFallFromFloorAction::isUseful()
|
||||
{
|
||||
AuriayaFallFromFloorTrigger auriayaFallFromFloorTrigger(botAI);
|
||||
return auriayaFallFromFloorTrigger.IsActive();
|
||||
}
|
||||
|
||||
bool HodirMoveSnowpackedIcicleAction::isUseful()
|
||||
{
|
||||
// Check boss and it is alive
|
||||
@@ -2096,6 +2113,9 @@ bool ThorimFallFromFloorAction::Execute(Event event)
|
||||
{
|
||||
Player* master = botAI->GetMaster();
|
||||
|
||||
if (!master)
|
||||
return false;
|
||||
|
||||
return bot->TeleportTo(bot->GetMapId(), master->GetPositionX(), master->GetPositionY(), master->GetPositionZ(),
|
||||
master->GetOrientation());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user