Fix creature tapped and lootable dynamic flags => fix creature not lootable.

Fixes issue #1067.

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-03-14 00:22:53 +01:00
parent 274268a686
commit 6fdaf225f3
6 changed files with 62 additions and 25 deletions
+3 -2
View File
@@ -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)