*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
|
// negative effects should continue counting down after logout
|
||||||
if (remaintime != -1 && !IsPositiveSpell(spellid))
|
if (remaintime != -1 && !IsPositiveSpell(spellid))
|
||||||
{
|
{
|
||||||
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
|
||||||
|
|||||||
+2
-2
@@ -15431,10 +15431,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 && !IsPositiveSpell(spellid))
|
if (remaintime != -1 && !IsPositiveSpell(spellid))
|
||||||
{
|
{
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user