*Fix crash and area aura remove.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-04-06 18:19:05 +02:00
parent c6c084cc45
commit fa1df5bac3
2 changed files with 21 additions and 24 deletions
+3
View File
@@ -92,6 +92,8 @@ class TRINITY_DLL_SPEC Aura
void SetNegative() { m_positive = false; }
void SetPositive() { m_positive = true; }
bool IsPermanent() const { return m_permanent; }
void RemoveAura() { m_permanent = false; m_duration=0; }
bool IsPassive() const { return m_isPassive; }
bool IsDeathPersistent() const { return m_isDeathPersist; }
bool IsRemovedOnShapeLost() const { return m_isRemovedOnShapeLost; }
@@ -353,6 +355,7 @@ class TRINITY_DLL_SPEC AuraEffect
int32 GetAmount() const {return m_amount;}
void SetAmount(int32 amount) { m_amount = amount; }
void CleanupTriggeredSpells();
bool RemoveParentAura();
protected:
AuraEffect (Aura * parentAura, uint8 effIndex, int32 * currentBasePoints , Unit * caster,Item * castItem);