mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10589] Always activate GO type 3 when quest id is defined (and active)
GO may be "lootless", but events at looting can happen Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
fc2e66231b
commit
b0d5e3e51a
3 changed files with 12 additions and 3 deletions
|
|
@ -724,7 +724,10 @@ bool GameObject::ActivateToQuest( Player *pTarget)const
|
|||
// scan GO chest with loot including quest items
|
||||
case GAMEOBJECT_TYPE_CHEST:
|
||||
{
|
||||
if(LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), pTarget))
|
||||
if (pTarget->GetQuestStatus(GetGOInfo()->chest.questId) == QUEST_STATUS_INCOMPLETE)
|
||||
return true;
|
||||
|
||||
if (LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), pTarget))
|
||||
{
|
||||
//look for battlegroundAV for some objects which are only activated after mine gots captured by own team
|
||||
if (GetEntry() == BG_AV_OBJECTID_MINE_N || GetEntry() == BG_AV_OBJECTID_MINE_S)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue