diff options
| author | Shauren <shauren.trinity@gmail.com> | 2021-03-02 21:32:48 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-03-02 21:32:48 +0100 |
| commit | 624881bef5c90a91e4c59e5bf404d8775c2ca55d (patch) | |
| tree | 168fae708e082ffceb296747ef1b282e73bc4d35 /src/server/scripts/World | |
| parent | 49532eda5f247c4c3c2c1f899ee63c0a8d01e76e (diff) | |
Core/Spells: Refactor Player::ApplySpellMod to take SpellInfo argument instead of just spell id
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 58946c4475d..5ddd5f7a081 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->Id, SPELLMOD_COOLDOWN, totalCooldown, nullptr); + player->ApplySpellMod(spellInfo, 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(spellInfo->Id, SPELLMOD_COOLDOWN, categoryCooldown, nullptr); + player->ApplySpellMod(spellInfo, SPELLMOD_COOLDOWN, categoryCooldown, nullptr); return remainingCooldown > 0 && !itr->second.OnHold |
