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');