Make ResetPeriodic controllable by boolean value, defaults to false

Fix by Moriquendu

--HG--
branch : trunk
This commit is contained in:
click
2010-04-20 00:11:03 +02:00
parent e1e7083990
commit a5500fd7f1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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)