*Also include grouped items in the check added in 3e8840284b77.
--HG-- branch : trunk
This commit is contained in:
@@ -472,7 +472,7 @@ QuestItemList* Loot::FillQuestLoot(Player* player)
|
|||||||
{
|
{
|
||||||
ql->push_back(QuestItem(i));
|
ql->push_back(QuestItem(i));
|
||||||
|
|
||||||
// questitems get blocked when they first apper in a
|
// questitems get blocked when they first appear in a
|
||||||
// player's quest vector
|
// player's quest vector
|
||||||
//
|
//
|
||||||
// increase once if one looter only, looter-times if free for all
|
// increase once if one looter only, looter-times if free for all
|
||||||
@@ -862,8 +862,14 @@ void LootTemplate::LootGroup::Process(Loot& loot, uint16 lootMode) const
|
|||||||
{
|
{
|
||||||
LootStoreItem const * item = Roll();
|
LootStoreItem const * item = Roll();
|
||||||
if (item != NULL && item->lootmode & lootMode) // only add this item if roll succeeds and the mode matches
|
if (item != NULL && item->lootmode & lootMode) // only add this item if roll succeeds and the mode matches
|
||||||
|
{
|
||||||
|
for (LootItemList::const_iterator _item = loot.items.begin(); _item != loot.items.end(); ++_item)
|
||||||
|
if (_item->itemid == i->itemid)
|
||||||
|
return; // Never add the same item twice
|
||||||
|
|
||||||
loot.AddItem(*item);
|
loot.AddItem(*item);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Overall chance for the group without equal chanced items
|
// Overall chance for the group without equal chanced items
|
||||||
float LootTemplate::LootGroup::RawTotalChance() const
|
float LootTemplate::LootGroup::RawTotalChance() const
|
||||||
|
|||||||
Reference in New Issue
Block a user