Core/Scripts: convert the Duel Cooldown Reset feature to scripts

This commit is contained in:
ShinDarth committed 2015-10-18 18:41:58 +02:00
1 parent 4204805d47
commit c6c3e72b55
5 files changed
+60 -19

No files matched your search

-9
View File
@@ -43,15 +43,6 @@ void WorldSession::HandleDuelAcceptedOpcode(WorldPacket& recvPacket)
TC_LOG_DEBUG("network", "Player 1 is: %u (%s)", player->GetGUID().GetCounter(), player->GetName().c_str());
TC_LOG_DEBUG("network", "Player 2 is: %u (%s)", plTarget->GetGUID().GetCounter(), plTarget->GetName().c_str());
if (sWorld->getBoolConfig(CONFIG_RESET_DUEL_COOLDOWNS))
{
player->GetSpellHistory()->SaveCooldownStateBeforeDuel();
plTarget->GetSpellHistory()->SaveCooldownStateBeforeDuel();
player->RemoveArenaSpellCooldowns(true);
plTarget->RemoveArenaSpellCooldowns(true);
}
time_t now = time(NULL);
player->duel->startTimer = now;
plTarget->duel->startTimer = now;