Core/Spells: Implemented pausing spell cooldowns

Port From (https://github.com/TrinityCore/TrinityCore/commit/a814eb65b15c4fcef6a37adc1b13905d4c13b2a5)
This commit is contained in:
hondacrx
2024-02-29 22:25:59 -05:00
parent 784f34beed
commit 2a4a2d1fdb
2 changed files with 35 additions and 2 deletions
+2 -1
View File
@@ -199,7 +199,8 @@ namespace Game.Entities
void _UpdateSpells(uint diff)
{
_spellHistory.Update();
if (!_spellHistory.IsPaused())
_spellHistory.Update();
if (GetCurrentSpell(CurrentSpellTypes.AutoRepeat) != null)
_UpdateAutoRepeatSpell();