diff options
author | ShinDarth <borzifrancesco@gmail.com> | 2015-10-18 02:11:51 +0200 |
---|---|---|
committer | ShinDarth <borzifrancesco@gmail.com> | 2015-10-18 02:11:51 +0200 |
commit | 9bd8522c0d626a83dacccaeb2dbb32861ec7e137 (patch) | |
tree | 6281fa146571e5b101005197bacf1f569845e1a1 /src | |
parent | 4204805d47078abf54e8a1c50321e63193a7c68d (diff) |
Core/SpellHistory: Improved Cooldown Duel Reset
- Do not send useless data to the client
- Fixed a rare visual bug
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/SpellHistory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellHistory.cpp b/src/server/game/Spells/SpellHistory.cpp index 0ae5fe97b13..3c157f0b17b 100644 --- a/src/server/game/Spells/SpellHistory.cpp +++ b/src/server/game/Spells/SpellHistory.cpp @@ -677,6 +677,10 @@ void SpellHistory::RestoreCooldownStateAfterDuel() { Clock::time_point now = Clock::now(); uint32 cooldownDuration = itr->second.CooldownEnd > now ? std::chrono::duration_cast<std::chrono::milliseconds>(itr->second.CooldownEnd - now).count() : 0; + + if (cooldownDuration == 0) + continue; + cooldowns[itr->first] = cooldownDuration; } |