Core/BattlePets: Added default cooldown to revive battle pets

Port From (https://github.com/TrinityCore/TrinityCore/commit/1a846415493289fc3852e56c82514d85c421267c)
This commit is contained in:
hondacrx
2021-12-24 20:41:51 -05:00
parent 8ff2e2d75b
commit 5de09a5046
5 changed files with 67 additions and 10 deletions
+2
View File
@@ -845,6 +845,8 @@ namespace Game
pCurrChar.SendInitialPacketsAfterAddToMap();
pCurrChar.UpdateReviveBattlePetCooldown();
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.UPD_CHAR_ONLINE);
stmt.AddValue(0, pCurrChar.GetGUID().GetCounter());
DB.Characters.Execute(stmt);