From 40255a660b3f3a16f5f5884ad0e04b8cec8ce25e Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Thu, 17 Dec 2009 11:06:50 +0100 Subject: Some fixes for GameObject, Chat, Creature, update DuelHandler for 322a --HG-- branch : trunk --- src/game/DuelHandler.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/game/DuelHandler.cpp') diff --git a/src/game/DuelHandler.cpp b/src/game/DuelHandler.cpp index c35b9dbdc07..d9854d900c8 100644 --- a/src/game/DuelHandler.cpp +++ b/src/game/DuelHandler.cpp @@ -51,10 +51,8 @@ void WorldSession::HandleDuelAcceptedOpcode(WorldPacket& recvPacket) pl->duel->startTimer = now; plTarget->duel->startTimer = now; - WorldPacket data(SMSG_DUEL_COUNTDOWN, 4); - data << (uint32)3000; // 3 seconds - pl->GetSession()->SendPacket(&data); - plTarget->GetSession()->SendPacket(&data); + pl->SendDuelCountdown(3000); + plTarget->SendDuelCountdown(3000); } void WorldSession::HandleDuelCancelledOpcode(WorldPacket& recvPacket) @@ -84,4 +82,3 @@ void WorldSession::HandleDuelCancelledOpcode(WorldPacket& recvPacket) GetPlayer()->DuelComplete(DUEL_INTERUPTED); } - -- cgit v1.2.3