mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-18 22:09:40 -04:00
*Correctly update negative aura duration at loading, thanks Sisif
--HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -15431,10 +15431,10 @@ void Player::_LoadAuras(QueryResult *result, 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
|
||||
|
||||
Reference in New Issue
Block a user