fix(Core): loot party (#4409)

This commit is contained in:
Walter Pagani
2021-02-12 09:03:49 -03:00
committed by GitHub
parent 85eb4808ac
commit 5106e8234b
4 changed files with 14 additions and 5 deletions

View File

@@ -18599,6 +18599,9 @@ bool Player::isAllowedToLoot(const Creature* creature)
if (loot->isLooted()) // nothing to loot or everything looted.
return false;
if (!loot->hasItemForAll() && !loot->hasItemFor(this)) // no loot in creature for this player
return false;
Group* thisGroup = GetGroup();
if (!thisGroup)
return this == creature->GetLootRecipient();