Fix for bot shadowknights casting ranger spells

This commit is contained in:
Uleat 2017-03-26 16:19:53 -04:00
parent 05e97f4c64
commit 940f3b03e8
4 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,2 @@
-- Fix spells_id for existing Shadowknight entries
UPDATE `bot_data` SET `spells_id` = '3005' WHERE `class` = '5';

View File

@ -462,7 +462,7 @@ void Bot::GenerateBaseStats()
Attack += 17;
break;
case SHADOWKNIGHT:
BotSpellID = 3004;
BotSpellID = 3005;
Strength += 10;
Stamina += 15;
Intelligence += 20;