mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00: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