mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 10:37:02 +00:00
Backports from 400 branch.
This commit is contained in:
parent
bf774f49ce
commit
76dfdd336f
32 changed files with 223 additions and 210 deletions
|
|
@ -1180,10 +1180,11 @@ void Pet::_LoadAuras(uint32 timediff)
|
|||
continue;
|
||||
|
||||
// prevent wrong values of remaincharges
|
||||
if(spellproto->procCharges)
|
||||
uint32 procCharges = spellproto->procCharges;
|
||||
if(procCharges)
|
||||
{
|
||||
if(remaincharges <= 0 || remaincharges > (int32)spellproto->procCharges)
|
||||
remaincharges = spellproto->procCharges;
|
||||
if(remaincharges <= 0 || remaincharges > (int32)procCharges)
|
||||
remaincharges = procCharges;
|
||||
}
|
||||
else
|
||||
remaincharges = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue