[8695] Fix negative auras remain time calculation at loading for pets.

In similar ways as recently fixed for players.
This commit is contained in:
VladimirMangos 2009-10-21 04:48:44 +04:00
parent fcf854c0bb
commit 012b54a63d
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8694"
#define REVISION_NR "8695"
#endif // __REVISION_NR_H__