Core/Quests: Fixed WPE exploit that allowed to accept any quest

This commit is contained in:
Intel
2014-12-29 21:39:33 +02:00
parent 0a7caf5a6d
commit 6b10271891

View File

@@ -455,6 +455,12 @@ void WorldSession::HandleQuestConfirmAccept(WorldPacket& recvData)
if (!_player->IsInSameRaidWith(originalPlayer))
return;
if (!!originalPlayer->CanShareQuest(questId))
return;
if (!_player->CanTakeQuest(quest, true))
return;
if (_player->CanAddQuest(quest, true))
_player->AddQuestAndCheckCompletion(quest, NULL); // NULL, this prevent DB script from duplicate running