mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8695] Fix negative auras remain time calculation at loading for pets.
In similar ways as recently fixed for players.
This commit is contained in:
parent
fcf854c0bb
commit
012b54a63d
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8694"
|
||||
#define REVISION_NR "8695"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue