mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Role assignment cooldown mapped per bot
This commit is contained in:
parent
67bc4a8e8f
commit
b42a40b8f4
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user