Role assignment cooldown mapped per bot

This commit is contained in:
avirar 2024-12-22 15:00:04 +11:00 committed by GitHub
parent 67bc4a8e8f
commit b42a40b8f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,5 +205,9 @@ void RazorscaleBossHelper::AssignRolesBasedOnHealth()
bot->Yell(text, LANG_UNIVERSAL); bot->Yell(text, LANG_UNIVERSAL);
_lastRoleSwapTime = std::time(nullptr); ObjectGuid botGuid = bot->GetGUID();
if (!botGuid)
return;
_lastRoleSwapTime[botGuid] = std::time(nullptr);
} }