fix(Core/TempleOfAhnQiraj): Huhuran timers + EventMap::Repeat (#13182)

fix(Core/TempleOfAhnQiraj): Huhuran timers + EventMap::Repeat using std::chrono
This commit is contained in:
Angelo Venturini 2022-10-04 20:42:25 -03:00 committed by GitHub
parent e05f61d1b3
commit 00eea376f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 18 deletions

View file

@ -106,6 +106,11 @@ void EventMap::Repeat(Milliseconds time)
RepeatEvent(time.count());
}
void EventMap::Repeat(Milliseconds minTime, Milliseconds maxTime)
{
RepeatEvent(randtime(minTime, maxTime).count());
}
uint32 EventMap::ExecuteEvent()
{
while (!Empty())