*Correctly update negative aura duration at loading, thanks Sisif

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-31 16:44:14 -07:00
parent bf4909cfb6
commit a22da32a51
2 changed files with 4 additions and 4 deletions

View File

@@ -1189,10 +1189,10 @@ void Pet::_LoadAuras(uint32 timediff)
// negative effects should continue counting down after logout
if (remaintime != -1 && !IsPositiveSpell(spellid))
{
if(remaintime <= int32(timediff))
if (remaintime/IN_MILISECONDS <= int32(timediff))
continue;
remaintime -= timediff;
remaintime -= timediff*IN_MILISECONDS;
}
// prevent wrong values of remaincharges