aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/World/duel_reset.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/World/duel_reset.cpp b/src/server/scripts/World/duel_reset.cpp
index 593906074c5..ae98c0eb4ab 100644
--- a/src/server/scripts/World/duel_reset.cpp
+++ b/src/server/scripts/World/duel_reset.cpp
@@ -66,8 +66,8 @@ class DuelResetScript : public PlayerScript
// Called when a duel ends
void OnDuelEnd(Player* winner, Player* loser, DuelCompleteType type) override
{
- // do not reset anything if DUEL_INTERRUPTED
- if (type != DUEL_INTERRUPTED)
+ // do not reset anything if DUEL_INTERRUPTED or DUEL_FLED
+ if (type == DUEL_WON)
{
// Cooldown restore
if (sWorld->getBoolConfig(CONFIG_RESET_DUEL_COOLDOWNS))
@@ -96,7 +96,7 @@ class DuelResetScript : public PlayerScript
}
}
}
-
+
void ResetSpellCooldowns(Player* player, bool removeActivePetCooldowns)
{
// remove cooldowns on spells that have < 10 min CD and has no onHold