Merge pull request #15755 from ShinDarth/reset-stealth

Fixed some rare stealth/prowl visual bugs after duel cd reset
This commit is contained in:
MitchesD committed 2015-10-23 12:09:41 +02:00
commit 6f844f36c3
1 file changed
+2 -1
+2 -1
View File
@@ -678,7 +678,8 @@ 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)
// cooldownDuration must be between 0 and 10 minutes in order to avoid any visual bugs
if (cooldownDuration == 0 || cooldownDuration > 10 * MINUTE * IN_MILLISECONDS)
continue;
cooldowns[itr->first] = cooldownDuration;