mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Build fix
This commit is contained in:
@@ -110,13 +110,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
|
||||
|
||||
Reference in New Issue
Block a user