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:
parent
efe62bea4a
commit
0ddf00c7be
2 changed files with 5 additions and 1 deletions
|
|
@ -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:
|
||||
{
|
||||
// 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
|
||||
//look for battlegroundAV for some objects which are only activated after mine gots captured by own team
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue