diff --git a/common/version.h b/common/version.h index e000d4fc6..c0c246166 100644 --- a/common/version.h +++ b/common/version.h @@ -32,7 +32,7 @@ #define CURRENT_BINARY_DATABASE_VERSION 9107 #ifdef BOTS - #define CURRENT_BINARY_BOTS_DATABASE_VERSION 9016 + #define CURRENT_BINARY_BOTS_DATABASE_VERSION 9017 #else #define CURRENT_BINARY_BOTS_DATABASE_VERSION 0 // must be 0 #endif diff --git a/utils/sql/git/bots/bots_db_update_manifest.txt b/utils/sql/git/bots/bots_db_update_manifest.txt index a699be478..9fdb07b41 100644 --- a/utils/sql/git/bots/bots_db_update_manifest.txt +++ b/utils/sql/git/bots/bots_db_update_manifest.txt @@ -15,6 +15,7 @@ 9014|2017_02_26_bots_spells_id_update_for_bot_spells_entries.sql|SELECT * FROM `bot_spells_entries` WHERE `npc_spells_id` >= '701' AND `npc_spells_id` <= '712'|not_empty| 9015|2017_02_26_bots_spell_casting_chances_update.sql|SHOW COLUMNS FROM `bot_spell_casting_chances` LIKE 'value'|not_empty| 9016|2017_02_26_bots_spell_casting_chances_update.sql|SHOW TABLES LIKE 'bot_spell_casting_chances'|empty| +9017|2017_03_26_bots_spells_id_fix_for_saved_shadowknight_bots.sql|SELECT * FROM `bot_data` WHERE `class` = '5' AND `spells_id` = '3004'|not_empty| # Upgrade conditions: # This won't be needed after this system is implemented, but it is used database that are not diff --git a/utils/sql/git/bots/required/2017_03_26_bots_spells_id_fix_for_saved_shadowknight_bots.sql b/utils/sql/git/bots/required/2017_03_26_bots_spells_id_fix_for_saved_shadowknight_bots.sql new file mode 100644 index 000000000..b7268c065 --- /dev/null +++ b/utils/sql/git/bots/required/2017_03_26_bots_spells_id_fix_for_saved_shadowknight_bots.sql @@ -0,0 +1,2 @@ +-- Fix spells_id for existing Shadowknight entries +UPDATE `bot_data` SET `spells_id` = '3005' WHERE `class` = '5'; diff --git a/zone/bot.cpp b/zone/bot.cpp index 00bb96bfc..dae92f950 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -462,7 +462,7 @@ void Bot::GenerateBaseStats() Attack += 17; break; case SHADOWKNIGHT: - BotSpellID = 3004; + BotSpellID = 3005; Strength += 10; Stamina += 15; Intelligence += 20;