aboutsummaryrefslogtreecommitdiff
path: root/src/game/Totem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Totem.h')
-rw-r--r--src/game/Totem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Totem.h b/src/game/Totem.h
index 1a1d28f2dc6..6dbd699f1d2 100644
--- a/src/game/Totem.h
+++ b/src/game/Totem.h
@@ -17,16 +17,21 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
#ifndef TRINITYCORE_TOTEM_H
#define TRINITYCORE_TOTEM_H
+
#include "TemporarySummon.h"
+
enum TotemType
{
TOTEM_PASSIVE = 0,
TOTEM_ACTIVE = 1,
TOTEM_STATUE = 2 // copied straight from MaNGOS, may need more implementation to work
};
+
#define SENTRY_TOTEM_ENTRY 3968
+
class Totem : public Minion
{
public:
@@ -39,6 +44,7 @@ class Totem : public Minion
uint32 GetSpell(uint8 slot=0) const { return m_spells[slot]; }
uint32 GetTotemDuration() const { return m_duration; }
TotemType GetTotemType() const { return m_type; }
+
bool UpdateStats(Stats /*stat*/) { return true; }
bool UpdateAllStats() { return true; }
void UpdateResistances(uint32 /*school*/) {}
@@ -47,7 +53,9 @@ class Totem : public Minion
void UpdateMaxPower(Powers /*power*/) {}
void UpdateAttackPowerAndDamage(bool /*ranged*/ ) {}
void UpdateDamagePhysical(WeaponAttackType /*attType*/) {}
+
bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const;
+
protected:
TotemType m_type;
uint32 m_duration;