mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(GameObject/Quest): GameObject quest / gossip window (#2676)
Co-authored-by: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1582041321256109939');
|
||||||
|
|
||||||
|
UPDATE `gameobject_template_addon` SET `flags` = `flags` | 4 WHERE `entry` IN (SELECT `entry` FROM `gameobject_template` WHERE `type` = 2 AND `data3` = 0);
|
||||||
@@ -316,7 +316,7 @@ void WorldSession::HandleQuestgiverChooseRewardOpcode(WorldPacket & recvData)
|
|||||||
// Send next quest
|
// Send next quest
|
||||||
if (Quest const* nextQuest = _player->GetNextQuest(guid, quest))
|
if (Quest const* nextQuest = _player->GetNextQuest(guid, quest))
|
||||||
{
|
{
|
||||||
if (_player->CanAddQuest(nextQuest, false) && _player->CanTakeQuest(quest, false))
|
if (_player->CanAddQuest(nextQuest, false) && _player->CanTakeQuest(nextQuest, false))
|
||||||
{
|
{
|
||||||
if (nextQuest->IsAutoAccept())
|
if (nextQuest->IsAutoAccept())
|
||||||
_player->AddQuestAndCheckCompletion(nextQuest, object);
|
_player->AddQuestAndCheckCompletion(nextQuest, object);
|
||||||
|
|||||||
Reference in New Issue
Block a user