fix(Scripts/Kalimdor): fix Azuregos respawn timer not persisting after restarts (#10823)

This commit is contained in:
Skjalf
2022-02-26 18:36:01 -03:00
committed by GitHub
parent 69e2f2e3aa
commit cb7f3d50ed
3 changed files with 12 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "GameTime.h"
#include "Player.h"
#include "ScriptedGossip.h"
#include "ScriptedCreature.h"
@@ -142,6 +143,7 @@ public:
});
me->SetRespawnTime(urand(2 * DAY, 3 * DAY));
me->SaveRespawnTimeToDB();
}
void UpdateAI(uint32 diff) override