Fixed ticking of periodic auras when m_periodicTimer for some reason became negative

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-07-26 14:27:22 +02:00
parent 5404d61e01
commit f3e97bfaae

View File

@@ -1000,7 +1000,7 @@ void AuraEffect::Update(uint32 diff, Unit * caster)
{
if (m_isPeriodic && (GetBase()->GetDuration() >=0 || GetBase()->IsPassive() || GetBase()->IsPermanent()))
{
if (m_periodicTimer > diff)
if (m_periodicTimer > int32(diff))
m_periodicTimer -= diff;
else // tick also at m_periodicTimer == 0 to prevent lost last tick in case max m_duration == (max m_periodicTimer)*N
{