mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 17:09:08 +00:00
movement, disable hearthstone
This commit is contained in:
@@ -382,23 +382,23 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle,
|
||||
}
|
||||
}
|
||||
|
||||
if (pathType == TravelNodePathType::teleportSpell && entry)
|
||||
{
|
||||
if (entry == 8690)
|
||||
{
|
||||
if (!bot->HasSpellCooldown(8690))
|
||||
{
|
||||
return botAI->DoSpecificAction("hearthstone", Event("move action"));
|
||||
}
|
||||
else
|
||||
{
|
||||
movePath.clear();
|
||||
AI_VALUE(LastMovement&, "last movement").setPath(movePath);
|
||||
LOG_DEBUG("playerbots", "bot->HasSpellCooldown(8690)");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (pathType == TravelNodePathType::teleportSpell && entry)
|
||||
// {
|
||||
// if (entry == 8690)
|
||||
// {
|
||||
// if (!bot->HasSpellCooldown(8690))
|
||||
// {
|
||||
// return botAI->DoSpecificAction("hearthstone", Event("move action"));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// movePath.clear();
|
||||
// AI_VALUE(LastMovement&, "last movement").setPath(movePath);
|
||||
// LOG_DEBUG("playerbots", "bot->HasSpellCooldown(8690)");
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
//if (!isTransport && bot->GetTransport())
|
||||
// bot->GetTransport()->RemovePassenger(bot);
|
||||
|
||||
Reference in New Issue
Block a user