Core/Tickets

* Fixed .ticket complete command not marking tickets as completed
* Fixed "Need more help" button functionality after ticket has been answered by a GM

Closes #9383
This commit is contained in:
illusion authored and Shauren committed 2013-05-11 11:19:57 +02:00
1 parent 77d4acc776
commit f4b83273ec
4 files changed
+22 -6

No files matched your search

+7 -2
View File
@@ -41,10 +41,15 @@ void WorldSession::HandleGMTicketCreateOpcode(WorldPacket& recvData)
}
GMTicketResponse response = GMTICKET_RESPONSE_CREATE_ERROR;
GmTicket* ticket = sTicketMgr->GetTicketByPlayer(GetPlayer()->GetGUID());
if (ticket && ticket->IsCompleted())
sTicketMgr->CloseTicket(ticket->GetId(), GetPlayer()->GetGUID());;
// Player must not have ticket
if (!sTicketMgr->GetTicketByPlayer(GetPlayer()->GetGUID()))
if (!ticket || ticket->IsClosed())
{
GmTicket* ticket = new GmTicket(GetPlayer(), recvData);
ticket = new GmTicket(GetPlayer(), recvData);
uint32 count;
std::list<uint32> times;