Make ResetPeriodic controllable by boolean value, defaults to false
Fix by Moriquendu --HG-- branch : trunk
This commit is contained in:
@@ -62,7 +62,7 @@ class AuraEffect
|
|||||||
|
|
||||||
uint32 GetTickNumber() const { return m_tickNumber; }
|
uint32 GetTickNumber() const { return m_tickNumber; }
|
||||||
int32 GetTotalTicks() const { return m_amplitude ? (GetBase()->GetMaxDuration() / m_amplitude) : 1;}
|
int32 GetTotalTicks() const { return m_amplitude ? (GetBase()->GetMaxDuration() / m_amplitude) : 1;}
|
||||||
void ResetPeriodic() {m_periodicTimer = m_amplitude; m_tickNumber = 0;}
|
void ResetPeriodic(bool resetPeriodicTimer = false) { if(resetPeriodicTimer) m_periodicTimer = m_amplitude; m_tickNumber = 0;}
|
||||||
|
|
||||||
bool IsPeriodic() const { return m_isPeriodic; }
|
bool IsPeriodic() const { return m_isPeriodic; }
|
||||||
bool IsAffectedOnSpell(SpellEntry const *spell) const;
|
bool IsAffectedOnSpell(SpellEntry const *spell) const;
|
||||||
|
|||||||
+1
-1
@@ -7636,7 +7636,7 @@ bool Unit::HandleAuraProc(Unit * /*pVictim*/, uint32 damage, Aura * triggeredByA
|
|||||||
if (!aurEff)
|
if (!aurEff)
|
||||||
return false;
|
return false;
|
||||||
// Reset amplitude - set death rune remove timer to 30s
|
// Reset amplitude - set death rune remove timer to 30s
|
||||||
aurEff->ResetPeriodic();
|
aurEff->ResetPeriodic(true);
|
||||||
uint32 runesLeft;
|
uint32 runesLeft;
|
||||||
|
|
||||||
if (dummySpell->SpellIconID == 2622)
|
if (dummySpell->SpellIconID == 2622)
|
||||||
|
|||||||
Reference in New Issue
Block a user