diff options
| author | ShinDarth <borzifrancesco@gmail.com> | 2015-12-06 03:44:12 +0100 |
|---|---|---|
| committer | ShinDarth <borzifrancesco@gmail.com> | 2015-12-06 03:44:12 +0100 |
| commit | 03215a2eb76167e1fb175a6b96440c752d1bcdf8 (patch) | |
| tree | 13515d9c5024e6d41241cf20c5aa16b8b23d48d3 | |
| parent | 984bf32fa89d25000f3ff369092bf9034e7a860b (diff) | |
Core/Spell: fixed possible exploit in Duel Reset script
- thanks @Runico for reporting it
| -rw-r--r-- | src/server/game/Spells/SpellHistory.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellHistory.cpp b/src/server/game/Spells/SpellHistory.cpp index ed5c31c25c6..faad54d0af7 100644 --- a/src/server/game/Spells/SpellHistory.cpp +++ b/src/server/game/Spells/SpellHistory.cpp @@ -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]; } |
