Merge pull request #15947 from ShinDarth/duel-exploit

Core/Spell: Fix exploit in duel cooldown reset handling
This commit is contained in:
jackpoz committed 2015-12-06 19:47:13 +01:00
commit 39a77effd7
1 file changed
+1 -3
+1 -3
View File
@@ -695,9 +695,7 @@ void SpellHistory::RestoreCooldownStateAfterDuel()
// check for spell with onHold active before and during the duel
for (auto itr = _spellCooldownsBeforeDuel.begin(); itr != _spellCooldownsBeforeDuel.end(); ++itr)
{
if (!itr->second.OnHold &&
_spellCooldowns.find(itr->first) != _spellCooldowns.end() &&
!_spellCooldowns[itr->first].OnHold)
if (!itr->second.OnHold && !_spellCooldowns[itr->first].OnHold)
_spellCooldowns[itr->first] = _spellCooldownsBeforeDuel[itr->first];
}