mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 13:35:08 +00:00
fix(Core/Gameobject): Fix lootable chests related to quests but not having quest loot (#15197)
Authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
-- Delete hack fix
|
||||||
|
UPDATE `gameobject_template` SET `Data1` = 0 WHERE (`entry` = 182583);
|
||||||
|
|
||||||
|
DELETE FROM `gameobject_loot_template` WHERE `Entry` = 19414;
|
||||||
@@ -1343,7 +1343,7 @@ bool GameObject::ActivateToQuest(Player* target) const
|
|||||||
case GAMEOBJECT_TYPE_CHEST:
|
case GAMEOBJECT_TYPE_CHEST:
|
||||||
{
|
{
|
||||||
// scan GO chest with loot including quest items
|
// scan GO chest with loot including quest items
|
||||||
if (LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), target))
|
if (target->GetQuestStatus(GetGOInfo()->chest.questId) == QUEST_STATUS_INCOMPLETE || LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), target))
|
||||||
{
|
{
|
||||||
//TODO: fix this hack
|
//TODO: fix this hack
|
||||||
//look for battlegroundAV for some objects which are only activated after mine gots captured by own team
|
//look for battlegroundAV for some objects which are only activated after mine gots captured by own team
|
||||||
|
|||||||
Reference in New Issue
Block a user