Core/Players: Implement SetToMaxOnInitialLogIn power flag
Port From (https://github.com/TrinityCore/TrinityCore/commit/6345a8f26b1b501589b5245422bc8c6789750c36)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user