Arena Master Quest Fix

This commit is contained in:
cabfever 2015-05-31 16:07:20 +02:00
parent a585fe0c6d
commit e51b291761

View File

@ -982,7 +982,7 @@ bool LootTemplate::LootGroup::HasStartingQuestDropForPlayer(Player const* player
proto = ObjectMgr::GetItemPrototype(i->itemid);
if(proto->StartQuest && i->chance == 100 && player->GetQuestStatus(proto->StartQuest) == QUEST_STATUS_NONE && !player->HasQuestForItem(i->itemid))
if(proto->StartQuest && ((i->chance == 100 && player->GetQuestStatus(proto->StartQuest) == QUEST_STATUS_NONE) || player->HasQuestForItem(i->itemid)))
{ return true; }
}
@ -993,7 +993,7 @@ bool LootTemplate::LootGroup::HasStartingQuestDropForPlayer(Player const* player
proto = ObjectMgr::GetItemPrototype(i->itemid);
if(proto->StartQuest && i->chance == 100 && player->GetQuestStatus(proto->StartQuest) == QUEST_STATUS_NONE && !player->HasQuestForItem(i->itemid))
if(proto->StartQuest && ((i->chance == 100 && player->GetQuestStatus(proto->StartQuest) == QUEST_STATUS_NONE) || player->HasQuestForItem(i->itemid)))
{ return true; }
}
return false;
@ -1250,7 +1250,7 @@ bool LootTemplate::HasStartingQuestDropForPlayer(LootTemplateMap const& store, P
}
else if (i->conditionId && !sObjectMgr.IsPlayerMeetToCondition(i->conditionId, player, player->GetMap(), NULL, CONDITION_FROM_LOOT))
{ return false; } // player doesn't respect the conditions.
else if(proto->StartQuest && i->chance == 100 && player->GetQuestStatus(proto->StartQuest) == QUEST_STATUS_NONE && !player->HasQuestForItem(i->itemid))
else if(proto->StartQuest && ((i->chance == 100 && player->GetQuestStatus(proto->StartQuest) == QUEST_STATUS_NONE) || player->HasQuestForItem(i->itemid)))
{ return true; } // starting quest drop found.
}