Core/Player: implement ResetCoolDownAfterDuel configurable feature

This commit is contained in:
ShinDarth committed 2015-10-05 15:57:53 +02:00
1 parent ba009ea2e2
commit 24b41a5211
10 files changed
+57 -2

No files matched your search

+3
View File
@@ -43,6 +43,9 @@ 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());
player->UpdateHasCoolDownBeforeDuel();
plTarget->UpdateHasCoolDownBeforeDuel();
time_t now = time(NULL);
player->duel->startTimer = now;
plTarget->duel->startTimer = now;