diff options
Diffstat (limited to 'src/game/Entities/Unit/Unit.h')
-rw-r--r-- | src/game/Entities/Unit/Unit.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/game/Entities/Unit/Unit.h b/src/game/Entities/Unit/Unit.h index 7f9a8b55b2..8fc08182ec 100644 --- a/src/game/Entities/Unit/Unit.h +++ b/src/game/Entities/Unit/Unit.h @@ -919,7 +919,12 @@ public: m_heal -= amount; } - uint32 GetHeal() const { return m_heal; }; + Unit* GetHealer() const { return m_healer; } + Unit* GetTarget() const { return m_target; } + uint32 GetHeal() const { return m_heal; } + uint32 GetAbsorb() const { return m_absorb; } + SpellInfo const* GetSpellInfo() const { return m_spellInfo; }; + SpellSchoolMask GetSchoolMask() const { return m_schoolMask; }; }; class ProcEventInfo @@ -1323,7 +1328,7 @@ class SafeUnitPointer { public: explicit SafeUnitPointer(Unit* defVal) : ptr(defVal), defaultValue(defVal) {} - SafeUnitPointer(const SafeUnitPointer& p) { ASSERT(false); } + SafeUnitPointer(const SafeUnitPointer& /*p*/) { ASSERT(false); } void Initialize(Unit* defVal) { defaultValue = defVal; ptr = defVal; } ~SafeUnitPointer(); void SetPointedTo(Unit* u); @@ -2405,7 +2410,7 @@ class Unit : public WorldObject // cooldowns virtual bool HasSpellCooldown(uint32 /*spell_id*/) const { return false; } virtual bool HasSpellItemCooldown(uint32 /*spell_id*/, uint32 /*itemid*/) const { return false; } - virtual void AddSpellCooldown(uint32 /*spell_id*/, uint32 /*itemid*/, uint32 /*end_time*/, bool needSendToClient = false, bool forceSendToSpectator = false) {} + virtual void AddSpellCooldown(uint32 /*spell_id*/, uint32 /*itemid*/, uint32 /*end_time*/, bool needSendToClient = false, bool forceSendToSpectator = false); bool CanApplyResilience() const { return m_applyResilience; } |