*Make AuraEffect::Update virtual.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-13 18:21:48 -05:00
parent df35e1ad2b
commit 7b6548f2d1
2 changed files with 4 additions and 10 deletions
+2 -9
View File
@@ -686,16 +686,9 @@ void Aura::Update(uint32 diff)
} }
} }
for (uint8 i = 0; i<MAX_SPELL_EFFECTS;++i) for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
if (m_partAuras[i]) if (m_partAuras[i])
{ m_partAuras[i]->Update(diff);
if (m_partAuras[i]->IsAreaAura())
((AreaAuraEffect *) m_partAuras[i])->Update(diff);
else if(m_partAuras[i]->IsPersistent())
((PersistentAreaAuraEffect *) m_partAuras[i])->Update(diff);
else
m_partAuras[i]->Update(diff);
}
} }
void AuraEffect::Update(uint32 diff) void AuraEffect::Update(uint32 diff)
+2 -1
View File
@@ -161,6 +161,7 @@ class TRINITY_DLL_SPEC Aura
bool m_updated:1; // Prevent remove aura by stack if set bool m_updated:1; // Prevent remove aura by stack if set
bool m_isSingleTargetAura:1; // true if it's a single target spell and registered at caster - can change at spell steal for example bool m_isSingleTargetAura:1; // true if it's a single target spell and registered at caster - can change at spell steal for example
}; };
class TRINITY_DLL_SPEC AuraEffect class TRINITY_DLL_SPEC AuraEffect
{ {
public: public:
@@ -335,7 +336,7 @@ class TRINITY_DLL_SPEC AuraEffect
uint32 GetEffIndex() const { return m_effIndex; } uint32 GetEffIndex() const { return m_effIndex; }
int32 GetBasePoints() const { return m_currentBasePoints; } int32 GetBasePoints() const { return m_currentBasePoints; }
int32 GetAuraAmplitude(){return m_amplitude;} int32 GetAuraAmplitude(){return m_amplitude;}
void Update(uint32 diff); virtual void Update(uint32 diff);
bool IsAreaAura() const { return m_isAreaAura; } bool IsAreaAura() const { return m_isAreaAura; }
bool IsPeriodic() const { return m_isPeriodic; } bool IsPeriodic() const { return m_isPeriodic; }