mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Role assignment cooldown mapped per bot
This commit is contained in:
@@ -205,5 +205,9 @@ void RazorscaleBossHelper::AssignRolesBasedOnHealth()
|
||||
|
||||
bot->Yell(text, LANG_UNIVERSAL);
|
||||
|
||||
_lastRoleSwapTime = std::time(nullptr);
|
||||
ObjectGuid botGuid = bot->GetGUID();
|
||||
if (!botGuid)
|
||||
return;
|
||||
|
||||
_lastRoleSwapTime[botGuid] = std::time(nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user