From 34fe4c2654dd41ff0a67a54882d3ac5aa1d8980a Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Fri, 14 Dec 2018 23:28:48 +0100 Subject: [PATCH] Creatures/Rank * set unused ranks to 0 during setup to fix display issues --- setup/tools/sqlgen/creature.func.php | 2 +- setup/updates/1544826311_01.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 setup/updates/1544826311_01.sql diff --git a/setup/tools/sqlgen/creature.func.php b/setup/tools/sqlgen/creature.func.php index 749ee89a..ecef6462 100644 --- a/setup/tools/sqlgen/creature.func.php +++ b/setup/tools/sqlgen/creature.func.php @@ -38,7 +38,7 @@ function creature(array $ids = []) exp, faction, npcflag, - rank, + IF(rank > 4, 0, rank), dmgSchool, DamageModifier, BaseAttackTime, diff --git a/setup/updates/1544826311_01.sql b/setup/updates/1544826311_01.sql new file mode 100644 index 00000000..8e335d3b --- /dev/null +++ b/setup/updates/1544826311_01.sql @@ -0,0 +1 @@ +UPDATE aowow_dbversion SET `sql` = CONCAT(IFNULL(`sql`, ''), ' creature');