diff options
author | Trazom62 <none@none> | 2010-03-14 00:22:53 +0100 |
---|---|---|
committer | Trazom62 <none@none> | 2010-03-14 00:22:53 +0100 |
commit | 6fdaf225f3bb9ce84e74f40e56727ccfea729a38 (patch) | |
tree | 381d341248fc721a4f9255c5756736560caaea54 /src/game/Creature.h | |
parent | 274268a68643c949cd914229fe31e98dc4c862c4 (diff) |
Fix creature tapped and lootable dynamic flags => fix creature not lootable.
Fixes issue #1067.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r-- | src/game/Creature.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h index e0f66eb1963..cef677edc29 100644 --- a/src/game/Creature.h +++ b/src/game/Creature.h @@ -528,7 +528,8 @@ class Creature : public Unit, public GridObject<Creature> bool lootForPickPocketed; bool lootForBody; Player *GetLootRecipient() const; - bool hasLootRecipient() const { return m_lootRecipient!=0; } + bool hasLootRecipient() const { return m_lootRecipient != 0; } + bool isTappedBy(Player *player) const; // return true if the creature is tapped by the player or a member of his party. void SetLootRecipient (Unit* unit); void AllLootRemovedFromCorpse(); @@ -636,7 +637,7 @@ class Creature : public Unit, public GridObject<Creature> void SetDisableReputationGain(bool disable) { DisableReputationGain = disable; } bool IsReputationGainDisabled() { return DisableReputationGain; } - bool IsDamageEnoughForLootingAndReward() { return m_PlayerDamageReq == 0; } + bool IsDamageEnoughForLootingAndReward() const { return m_PlayerDamageReq == 0; } void LowerPlayerDamageReq(uint32 unDamage) { if(m_PlayerDamageReq) |