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:
Ovahlord committed 2018-10-06 18:17:10 +02:00
1 parent 05ac6fb175
commit 556bf05050
5 files changed
+12 -11

No files matched your search

-8
View File
@@ -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;
}