Core/Creatures: Changed the spawn health field in creature table to a percentage

Port From (https://github.com/TrinityCore/TrinityCore/commit/def601b4ff82ec8a90af60408a87cac92fdf070d)
This commit is contained in:
Hondacrx
2024-08-04 16:31:25 -04:00
parent 8969d59a41
commit cb16de1f15
10 changed files with 112 additions and 87 deletions
+1 -2
View File
@@ -990,9 +990,8 @@ namespace Game.Chat
return false;
}
creature.SetMaxHealth((uint)(100 + 30 * lvl));
creature.SetHealth((uint)(100 + 30 * lvl));
creature.SetLevel(lvl);
creature.UpdateLevelDependantStats();
creature.SaveToDB();
return true;