mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
*Correctly update negative aura duration at loading, thanks Sisif
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user