mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue