Creature/Loot: Fix a bug that prevented players from looting creatures that only had gold on them (no items).

This commit is contained in:
treeston
2016-08-16 15:29:18 +02:00
parent 7f5756804e
commit 63f577a7ef

View File

@@ -17600,7 +17600,7 @@ bool Player::isAllowedToLoot(const Creature* creature)
const Loot* loot = &creature->loot;
if (loot->isLooted()) // nothing to loot or everything looted.
return false;
if (!loot->hasItemForAll() && !loot->hasItemFor(this)) // no loot in creature for this player
if (!loot->gold && !loot->hasItemForAll() && !loot->hasItemFor(this)) // no loot in creature for this player
return false;
if (loot->loot_type == LOOT_SKINNING)