diff options
| author | Muhaha <none@none> | 2009-05-13 10:34:55 +0200 |
|---|---|---|
| committer | Muhaha <none@none> | 2009-05-13 10:34:55 +0200 |
| commit | 62c5720227f2863270ab7c3f8d72c90a802e7084 (patch) | |
| tree | 8fc619094b113503b5bc7ea83f0335bc266eb645 /src/game/Player.cpp | |
| parent | 11e66c1cf00b9c8963a91b06462423cb21e9cdb1 (diff) | |
* avoid loot/exp when the mobs are killed by npc. Authore: KAPATEJIb @ getmangos.org
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index fcdeb30a42d..e91728ab9be 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -14379,6 +14379,9 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder ) bool Player::isAllowedToLoot(Creature* creature) { + if(creature->isDead() && !creature->IsDamageEnoughForLootingAndReward()) + return false; + if(Player* recipient = creature->GetLootRecipient()) { if (recipient == this) |
