diff options
| author | treeston <treeston.mmoc@gmail.com> | 2016-08-16 23:32:08 +0200 | 
|---|---|---|
| committer | treeston <treeston.mmoc@gmail.com> | 2016-08-16 23:32:08 +0200 | 
| commit | c5549ac7e9f23a4af8650a41c9974310ffc3fdea (patch) | |
| tree | a850754a6fea9add9e11474ec60cdce8ff527343 | |
| parent | 63f577a7ef4df2d6ebf90fc137c3cb8902b29d0a (diff) | |
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.
| -rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index e98a1c6d415..fa4d11683ed 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -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->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) | 
