Build fix

(cherry picked from commit 3aadb72eaad2d0316365a39b5c448718052d6e36)
This commit is contained in:
Keader
2020-08-18 18:53:13 +02:00
committed by Shauren
parent 251c1811ae
commit db80892a41
+2 -2
View File
@@ -98,13 +98,13 @@ class DuelResetScript : public PlayerScript
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_IGNORE_CATEGORY_COOLDOWN_MODS))
player->ApplySpellMod<SPELLMOD_COOLDOWN>(spellInfo->Id, categoryCooldown, nullptr);
player->ApplySpellMod(spellInfo->Id, SPELLMOD_COOLDOWN, categoryCooldown, nullptr);
return remainingCooldown > 0
&& !itr->second.OnHold