diff options
-rw-r--r-- | src/game/Pet.cpp | 4 | ||||
-rw-r--r-- | src/game/Player.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 6275bd8a75b..b5995120a9e 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -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 diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 4199e23c2e4..5733abb630d 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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 |