mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 22:56:24 +00:00
feat(Core/Hook): New PlayerScript hook "OnPetInitStatsForLevel" (#2556)
This commit is contained in:
@@ -1065,6 +1065,10 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
||||
|
||||
SetFullHealth();
|
||||
SetPower(POWER_MANA, GetMaxPower(POWER_MANA));
|
||||
|
||||
if (Pet* pet = ToPet())
|
||||
sScriptMgr->OnPetInitStatsForLevel(pet);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user