fix(Core/Player): Fix Player not starting at full health (#18136)
* fix(Core/Player): Fix Player not starting at full health * remove first call to UpdateMaxHealth() and SetFullHealth()
This commit is contained in:
@@ -587,8 +587,6 @@ bool Player::Create(ObjectGuid::LowType guidlow, CharacterCreateInfo* createInfo
|
|||||||
InitPrimaryProfessions(); // to max set before any spell added
|
InitPrimaryProfessions(); // to max set before any spell added
|
||||||
|
|
||||||
// apply original stats mods before spell loading or item equipment that call before equip _RemoveStatsMods()
|
// 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)
|
if (getPowerType() == POWER_MANA)
|
||||||
{
|
{
|
||||||
UpdateMaxPower(POWER_MANA); // Update max Mana (for add bonus from intellect)
|
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
|
// all item positions resolved
|
||||||
|
|
||||||
|
// ensure player starts with full health
|
||||||
|
UpdateAllStats();
|
||||||
|
SetFullHealth();
|
||||||
|
|
||||||
CheckAllAchievementCriteria();
|
CheckAllAchievementCriteria();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user