mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 22:37:05 +00:00
[8683] Correctly update negetive aura duration at loading.
Thanks to ApoC for problem reseach.
This commit is contained in:
parent
2db2600d65
commit
8271e7eb99
2 changed files with 3 additions and 3 deletions
|
|
@ -14835,10 +14835,10 @@ void Player::_LoadAuras(QueryResult *result, uint32 timediff)
|
||||||
// negative effects should continue counting down after logout
|
// negative effects should continue counting down after logout
|
||||||
if (remaintime != -1 && !IsPositiveEffect(spellid, effindex))
|
if (remaintime != -1 && !IsPositiveEffect(spellid, effindex))
|
||||||
{
|
{
|
||||||
if(remaintime <= int32(timediff))
|
if (remaintime/IN_MILISECONDS <= int32(timediff))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
remaintime -= timediff;
|
remaintime -= timediff*IN_MILISECONDS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// prevent wrong values of remaincharges
|
// prevent wrong values of remaincharges
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8682"
|
#define REVISION_NR "8683"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue