feat(Core/Hook): New PlayerScript hook "OnPetInitStatsForLevel" (#2556)

This commit is contained in:
Stoabrogga
2020-01-14 11:46:16 +01:00
committed by GitHub
parent 0a97359c53
commit dd81c21968
3 changed files with 13 additions and 0 deletions

View File

@@ -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;
}