Core/Spells: Improve handling cooldowns on hold

* Exclude them from ModifyCooldown/ResetCooldown
* Remove InfinityCooldownDelay constant and add OnHold checks in Update
* Fixed Seething Shore battleground resetting profession cooldowns
This commit is contained in:
Shauren
2026-06-06 16:07:22 +02:00
parent 26f1f94bb0
commit 45dbebb629
4 changed files with 31 additions and 45 deletions
@@ -22,7 +22,6 @@
#include "BattlegroundScript.h"
#include "Containers.h"
#include "CreatureAI.h"
#include "G3DPosition.hpp"
#include "GameObject.h"
#include "GameObjectAI.h"
#include "Map.h"
@@ -34,7 +33,6 @@
#include "Spell.h"
#include "SpellAuras.h"
#include "SpellScript.h"
#include "SpellHistory.h"
#include "TaskScheduler.h"
#include "TemporarySummon.h"
#include "WaypointDefines.h"
@@ -650,7 +648,7 @@ class spell_bg_seething_shore_speed_up : public SpellScript
// Unsure about which spells should reset and which not
// It's not the same list as the ones that reset on encounter reset
if (Player* player = GetCaster()->ToPlayer())
player->GetSpellHistory()->ResetAllCooldowns();
player->RemoveArenaSpellCooldowns();
}
void Register() override
-1
View File
@@ -114,7 +114,6 @@ class DuelResetScript : public PlayerScript
applySpellMod(categoryCooldown);
return remainingCooldown > 0ms
&& !cooldown.OnHold
&& Milliseconds(totalCooldown) < 10min
&& Milliseconds(categoryCooldown) < 10min
&& Milliseconds(remainingCooldown) < 10min