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:
1 parent
77d4acc776
commit
f4b83273ec
4 files changed
+22
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user