From 9ac0ff37854ea9e8e4320a37bce3a8364402abaa Mon Sep 17 00:00:00 2001 From: Nefertumm Date: Wed, 5 Oct 2022 12:15:32 -0300 Subject: [PATCH] Revert "fix: build (#28)" This reverts commit 35d46f5c6ead5cb0b27e754fda2e642d934fe6c5. --- src/DuelReset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DuelReset.cpp b/src/DuelReset.cpp index 9db4a2d..3736b43 100644 --- a/src/DuelReset.cpp +++ b/src/DuelReset.cpp @@ -43,12 +43,12 @@ void DuelReset::ResetSpellCooldowns(Player* player, bool onStartDuel) uint32 remainingCooldown = player->GetSpellCooldownDelay(spellInfo->Id); int32 totalCooldown = spellInfo->RecoveryTime; int32 categoryCooldown = spellInfo->CategoryRecoveryTime; - player->ApplySpellMod(spellInfo->Id, totalCooldown, nullptr); + player->ApplySpellMod(spellInfo->Id, SPELLMOD_COOLDOWN, totalCooldown, nullptr); if (int32 cooldownMod = player->GetTotalAuraModifier(SPELL_AURA_MOD_COOLDOWN)) totalCooldown += cooldownMod * IN_MILLISECONDS; if (!spellInfo->HasAttribute(SPELL_ATTR6_NO_CATEGORY_COOLDOWN_MODS)) - player->ApplySpellMod(spellInfo->Id, categoryCooldown, nullptr); + player->ApplySpellMod(spellInfo->Id, SPELLMOD_COOLDOWN, categoryCooldown, nullptr); // Clear cooldown if < 10min & (passed time > 30sec or onDuelEnd) if (remainingCooldown > 0