Skip to content

Commit

Permalink
Fix for bot shadowknights casting ranger spells
Browse files Browse the repository at this point in the history
  • Loading branch information
Uleat committed Mar 26, 2017
1 parent 05e97f4 commit 940f3b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/version.h
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions utils/sql/git/bots/bots_db_update_manifest.txt
Expand Up @@ -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
Expand Down
@@ -0,0 +1,2 @@
-- Fix spells_id for existing Shadowknight entries
UPDATE `bot_data` SET `spells_id` = '3005' WHERE `class` = '5';
2 changes: 1 addition & 1 deletion zone/bot.cpp
Expand Up @@ -462,7 +462,7 @@ void Bot::GenerateBaseStats()
Attack += 17;
break;
case SHADOWKNIGHT:
BotSpellID = 3004;
BotSpellID = 3005;
Strength += 10;
Stamina += 15;
Intelligence += 20;
Expand Down

0 comments on commit 940f3b0

Please sign in to comment.