From d3f380d04b2d2b53daf91af424b729f121b7adf3 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sat, 7 Sep 2024 11:52:29 +0800 Subject: [PATCH] Spellcooldown and instance refresh on randomize --- src/factory/PlayerbotFactory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/factory/PlayerbotFactory.cpp b/src/factory/PlayerbotFactory.cpp index 5b5eba2e..eb4ee127 100644 --- a/src/factory/PlayerbotFactory.cpp +++ b/src/factory/PlayerbotFactory.cpp @@ -207,7 +207,8 @@ void PlayerbotFactory::Randomize(bool incremental) { ClearAllItems(); } - // bot->SaveToDB(false, false); + bot->RemoveAllSpellCooldown(); + UnbindInstance(); bot->GiveLevel(level); bot->InitStatsForLevel();