Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2024-01-15 21:00:38 +08:00
23 changed files with 1798 additions and 180 deletions

View File

@@ -587,8 +587,6 @@ bool Player::Create(ObjectGuid::LowType guidlow, CharacterCreateInfo* createInfo
InitPrimaryProfessions(); // to max set before any spell added
// apply original stats mods before spell loading or item equipment that call before equip _RemoveStatsMods()
UpdateMaxHealth(); // Update max Health (for add bonus from stamina)
SetFullHealth();
if (getPowerType() == POWER_MANA)
{
UpdateMaxPower(POWER_MANA); // Update max Mana (for add bonus from intellect)
@@ -686,6 +684,10 @@ bool Player::Create(ObjectGuid::LowType guidlow, CharacterCreateInfo* createInfo
}
// all item positions resolved
// ensure player starts with full health
UpdateAllStats();
SetFullHealth();
CheckAllAchievementCriteria();
return true;