Core/Quests: Fixed WPE exploit that allowed to accept any quest
(cherry picked from commit 6b10271891d2cbafbad1446051fcf3866ea728e3)
This commit is contained in:
1 parent
61eb65b073
commit
c87de730fa
1 file changed
+6
@@ -458,6 +458,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
|
||||
|
||||
|
||||
Reference in new issue
Block a user