From 1274a0f657f9096bd31649b665e97819d9872db6 Mon Sep 17 00:00:00 2001 From: luis Date: Sun, 23 Aug 2026 01:47:11 -0300 Subject: [PATCH] db error --- sql/updates/world/master/2026_08_22_07_world.sql | 2 +- .../2026_08_23_02_world_creature_curhealthpct_fix.sql | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sql/updates/world/master/2026_08_23_02_world_creature_curhealthpct_fix.sql diff --git a/sql/updates/world/master/2026_08_22_07_world.sql b/sql/updates/world/master/2026_08_22_07_world.sql index 99bbc1b5f..29eb757c7 100644 --- a/sql/updates/world/master/2026_08_22_07_world.sql +++ b/sql/updates/world/master/2026_08_22_07_world.sql @@ -6,7 +6,7 @@ SET `ContentTuningID`=4306, WHERE `Entry`=245027 AND `DifficultyID`=0; UPDATE `creature_template` -SET `unit_flags`=33536 +SET `unit_flags`=0 WHERE `entry`=245027; -- Win'sa (Food Vendor) - npcflag 129 = gossip + vendor diff --git a/sql/updates/world/master/2026_08_23_02_world_creature_curhealthpct_fix.sql b/sql/updates/world/master/2026_08_23_02_world_creature_curhealthpct_fix.sql new file mode 100644 index 000000000..298689789 --- /dev/null +++ b/sql/updates/world/master/2026_08_23_02_world_creature_curhealthpct_fix.sql @@ -0,0 +1,9 @@ +-- Fix curHealthPct issues for creatures with 100% health but enabled regeneration +-- When curHealthPct is 100 and regeneration is enabled, the field should be NULL + +UPDATE `creature` SET `curHealthPct` = NULL WHERE `guid` IN ( + 730163, 730164, 730165, 730166, 730167, 730168, 730169, 730170, 730171, 730172, + 730173, 730174, 730175, 730176, 730177, 730178, 730179, 730180, 730181, 730182, + 730183, 730184, 730185, 730186, 730187, 730188, 730189, 730190, 730191, 730192, + 730193, 730194, 730195, 730196, 730197, 730198, 730199, 730200, 730201 +);