mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Spell: fixed possible exploit in Duel Reset script
- thanks @Runico for reporting it
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user