Revert "Creature/Loot: Fix a bug that prevented players from looting creatures that only had gold on them (no items)."
This reverts commit 63f577a7ef4df2d6ebf90fc137c3cb8902b29d0a. See discussion in commit comments.
This commit is contained in:
1 parent
0ffd02f540
commit
77e4a1e487
1 file changed
+1
-1
@@ -17793,7 +17793,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->gold && !loot->hasItemForAll() && !loot->hasItemFor(this)) // no loot in creature for this player
|
||||
if (!loot->hasItemForAll() && !loot->hasItemFor(this)) // no loot in creature for this player
|
||||
return false;
|
||||
|
||||
if (loot->loot_type == LOOT_SKINNING)
|
||||
|
||||
Reference in new issue
Block a user