Core/Pets: use a update timer for scaling auras in order to get closer to retail behaivior
* corrected base health scaling formular for Hunter pets
This commit is contained in:
1 parent
05ac6fb175
commit
556bf05050
5 files changed
+12
-11
No files matched your search
@@ -9772,10 +9772,6 @@ bool Unit::HandleStatModifier(UnitMods unitMod, UnitModifierType modifierType, f
|
||||
break;
|
||||
}
|
||||
|
||||
// Do not update pet stats one by one. We will update all stats in one big chunk after updating all scaling auras
|
||||
if (IsPet())
|
||||
return false;
|
||||
|
||||
if (!CanModifyStats())
|
||||
return false;
|
||||
|
||||
@@ -9829,10 +9825,6 @@ bool Unit::HandleStatModifier(UnitMods unitMod, UnitModifierType modifierType, f
|
||||
break;
|
||||
}
|
||||
|
||||
if (Player* player = ToPlayer())
|
||||
if (Pet* pet = player->GetPet())
|
||||
pet->UpdatePetScalingAuras();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user