Skip to content

Commit

Permalink
Revert "fix: build (#28)"
Browse files Browse the repository at this point in the history
This reverts commit 35d46f5.
  • Loading branch information
Nefertumm committed Oct 5, 2022
1 parent 35d46f5 commit 9ac0ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DuelReset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SPELLMOD_COOLDOWN>(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<SPELLMOD_COOLDOWN>(spellInfo->Id, categoryCooldown, nullptr);
player->ApplySpellMod(spellInfo->Id, SPELLMOD_COOLDOWN, categoryCooldown, nullptr);

// Clear cooldown if < 10min & (passed time > 30sec or onDuelEnd)
if (remainingCooldown > 0
Expand Down

0 comments on commit 9ac0ff3

Please sign in to comment.