Core/Scripts: convert the Duel Cooldown Reset feature to scripts
This commit is contained in:
1 parent
4204805d47
commit
c6c3e72b55
5 files changed
+60
-19
No files matched your search
@@ -7610,15 +7610,6 @@ void Player::DuelComplete(DuelCompleteType type)
|
||||
duel->opponent->SetGuidValue(PLAYER_DUEL_ARBITER, ObjectGuid::Empty);
|
||||
duel->opponent->SetUInt32Value(PLAYER_DUEL_TEAM, 0);
|
||||
|
||||
if (sWorld->getBoolConfig(CONFIG_RESET_DUEL_COOLDOWNS))
|
||||
{
|
||||
RemoveArenaSpellCooldowns(true);
|
||||
duel->opponent->RemoveArenaSpellCooldowns(true);
|
||||
|
||||
GetSpellHistory()->RestoreCooldownStateAfterDuel();
|
||||
duel->opponent->GetSpellHistory()->RestoreCooldownStateAfterDuel();
|
||||
}
|
||||
|
||||
delete duel->opponent->duel;
|
||||
duel->opponent->duel = NULL;
|
||||
delete duel;
|
||||
|
||||
Reference in new issue
Block a user