Skip to content

Commit

Permalink
Fix. Give the player the quest items too (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
pangolp committed Feb 21, 2024
1 parent dc493af commit ea69636
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AoeLoot_SC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ class AoeLoot_Player : public PlayerScript
if (!player->HasItemCount(item.itemid, 1, true))
aoeLoot[item.itemid] = 1;
}
player->SendNotifyLootItemRemoved(item.itemIndex);
}

for (auto const& item : loot->quest_items)
{
aoeLoot[item.itemid] += (uint32)item.count;
}

player->SendLootRelease(player->GetLootGUID());
Expand Down

0 comments on commit ea69636

Please sign in to comment.