aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorMeji <alvaro.megias@outlook.com>2024-03-30 20:21:28 +0100
committerOvahlord <dreadkiller@gmx.de>2024-05-28 16:31:42 +0200
commit382eb5063fc63871a41bbe7b8c81db30ad3d741e (patch)
tree8ecc2690705b34dd77e3483114610c2cc65aa386 /src/server/scripts/World
parent5e1f21a0dd75c6cc56ca171360855ed65a623c44 (diff)
Core/Creatures: Changed the spawn health field in creature table to a percentage (#29801)
(cherry picked from commit def601b4ff82ec8a90af60408a87cac92fdf070d)
Diffstat (limited to 'src/server/scripts/World')
-rw-r--r--src/server/scripts/World/npcs_special.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp
index a3db8c19c6b..d2294bbd2b7 100644
--- a/src/server/scripts/World/npcs_special.cpp
+++ b/src/server/scripts/World/npcs_special.cpp
@@ -1005,7 +1005,7 @@ public:
me->SetStandState(UNIT_STAND_STATE_KNEEL);
// expect database to have RegenHealth=0
- me->SetHealth(me->CountPctFromMaxHealth(70));
+ me->SetSpawnHealth();
}
void JustEngagedWith(Unit* /*who*/) override { }