diff options
| author | Shauren <shauren.trinity@gmail.com> | 2021-03-15 21:03:06 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-03-15 21:03:06 +0100 |
| commit | 6585666e6e34ade0333e4c23876acdf847d169c0 (patch) | |
| tree | cab5db79bd4008efcbff0e0db20eb3d5547a369f /src/server/scripts/World | |
| parent | 8313053a3bbf8950daf3a1c134dde8a25edf0bd2 (diff) | |
Core/Spells: Define all spell modifier types and implement ProcCooldown mod and PeriodicHealingAndDamage for melee periodic damage
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/duel_reset.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/World/duel_reset.cpp b/src/server/scripts/World/duel_reset.cpp index 5ddd5f7a081..947d705cc80 100644 --- a/src/server/scripts/World/duel_reset.cpp +++ b/src/server/scripts/World/duel_reset.cpp @@ -98,13 +98,13 @@ class DuelResetScript : public PlayerScript int32 totalCooldown = spellInfo->RecoveryTime; int32 categoryCooldown = spellInfo->CategoryRecoveryTime; - player->ApplySpellMod(spellInfo, SPELLMOD_COOLDOWN, totalCooldown, nullptr); + player->ApplySpellMod(spellInfo, SpellModOp::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(spellInfo, SPELLMOD_COOLDOWN, categoryCooldown, nullptr); + player->ApplySpellMod(spellInfo, SpellModOp::Cooldown, categoryCooldown, nullptr); return remainingCooldown > 0 && !itr->second.OnHold |
