Core/Players: Implement SetToMaxOnInitialLogIn power flag

Port From (https://github.com/TrinityCore/TrinityCore/commit/6345a8f26b1b501589b5245422bc8c6789750c36)
This commit is contained in:
Hondacrx
2025-12-08 09:58:34 -05:00
parent 4715a7b1bd
commit e353cf5497
+4 -1
View File
@@ -264,7 +264,10 @@ namespace Game.Entities
// 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();
SetFullPower(PowerType.Mana);
foreach (var (_, powerType) in CliDB.PowerTypeStorage)
if (powerType.HasFlag(PowerTypeFlags.SetToMaxOnInitialLogIn))
SetFullPower(powerType.PowerTypeEnum);
// original spells
LearnDefaultSkills();