*Some update of summon effect code.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-27 18:12:45 -05:00
parent ef87d10a81
commit 34599a46f7
8 changed files with 175 additions and 273 deletions
+1 -5
View File
@@ -27,7 +27,6 @@ enum TotemType
{
TOTEM_PASSIVE = 0,
TOTEM_ACTIVE = 1,
TOTEM_STATUE = 2
};
#define SENTRY_TOTEM_ENTRY 3968
@@ -38,15 +37,12 @@ class Totem : public TempSummon
explicit Totem(SummonPropertiesEntry const *properties, Unit *owner);
virtual ~Totem(){};
void Update( uint32 time );
void Summon(Unit* owner);
void InitSummon(uint32 duration);
void UnSummon();
uint32 GetSpell() const { return m_spells[0]; }
uint32 GetTotemDuration() const { return m_duration; }
Unit *GetOwner();
TotemType GetTotemType() const { return m_type; }
void SetTypeBySummonSpell(SpellEntry const * spellProto);
void SetDuration(uint32 dur) { m_duration = dur; }
void SetOwner(Unit *owner);
bool UpdateStats(Stats /*stat*/) { return true; }
bool UpdateAllStats() { return true; }