Skip to content

Commit

Permalink
[9329] Add spell chain for 50245/50519 and ranks.
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
KAPATEJIb authored and VladimirMangos committed Feb 8, 2010
1 parent c7558d7 commit d6b5be5
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 3 deletions.
22 changes: 21 additions & 1 deletion sql/mangos.sql
Expand Up @@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`creature_ai_version` varchar(120) default NULL,
`cache_id` int(10) default '0',
`required_9312_01_mangos_quest_template` bit(1) default NULL
`required_9329_01_mangos_spell_chain` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';

--
Expand Down Expand Up @@ -15602,6 +15602,16 @@ INSERT INTO spell_chain VALUES
(27051,24579,24423,5,0),
(55487,27051,24423,6,0),
/*------------------
--(214)Pet - Crab
------------------*/
/* Sonic Blast */
(50245,0,50245,1,0),
(53544,50245,50245,2,0),
(53545,53544,50245,3,0),
(53546,53545,50245,4,0),
(53547,53546,50245,5,0),
(53548,53547,50245,6,0),
/*------------------
--(215)Pet-Gorilla
--(786)Pet-ExoticRhino
--(775)Pet-Moth
Expand Down Expand Up @@ -17145,6 +17155,16 @@ INSERT INTO spell_chain VALUES
(9485,9484,9484,2,0),
(10955,9485,9484,3,0),
/*------------------
--(654)Pet - Bat
------------------*/
/* Pin */
(50519,0,50519,1,0),
(53564,50519,50519,2,0),
(53565,53564,50519,3,0),
(53566,53565,50519,4,0),
(53567,53566,50519,5,0),
(53568,53567,50519,6,0),
/*------------------
--(654)Pet-Hyena
------------------*/
/*TendonRip*/
Expand Down
21 changes: 21 additions & 0 deletions sql/updates/9329_01_mangos_spell_chain.sql
@@ -0,0 +1,21 @@
ALTER TABLE db_version CHANGE COLUMN required_9312_01_mangos_quest_template required_9329_01_mangos_spell_chain bit;

/* Pin */
DELETE FROM spell_chain WHERE first_spell = 50519;
INSERT INTO spell_chain VALUES
(50519, 0, 50519, 1, 0),
(53564, 50519, 50519, 2, 0),
(53565, 53564, 50519, 3, 0),
(53566, 53565, 50519, 4, 0),
(53567, 53566, 50519, 5, 0),
(53568, 53567, 50519, 6, 0);

/* Sonic Blast */
DELETE FROM spell_chain WHERE first_spell = 50245;
INSERT INTO spell_chain VALUES
(50245, 0, 50245, 1, 0),
(53544, 50245, 50245, 2, 0),
(53545, 53544, 50245, 3, 0),
(53546, 53545, 50245, 4, 0),
(53547, 53546, 50245, 5, 0),
(53548, 53547, 50245, 6, 0);
2 changes: 2 additions & 0 deletions sql/updates/Makefile.am
Expand Up @@ -263,6 +263,7 @@ pkgdata_DATA = \
9309_01_mangos_quest_template.sql \
9310_01_mangos_spell_elixir.sql \
9312_01_mangos_quest_template.sql \
9329_01_mangos_spell_chain.sql \
README

## Additional files to include when running 'make dist'
Expand Down Expand Up @@ -506,4 +507,5 @@ EXTRA_DIST = \
9309_01_mangos_quest_template.sql \
9310_01_mangos_spell_elixir.sql \
9312_01_mangos_quest_template.sql \
9329_01_mangos_spell_chain.sql \
README
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9328"
#define REVISION_NR "9329"
#endif // __REVISION_NR_H__
2 changes: 1 addition & 1 deletion src/shared/revision_sql.h
@@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_CHARACTERS "required_9250_01_characters_character"
#define REVISION_DB_MANGOS "required_9312_01_mangos_quest_template"
#define REVISION_DB_MANGOS "required_9329_01_mangos_spell_chain"
#define REVISION_DB_REALMD "required_9010_01_realmd_realmlist"
#endif // __REVISION_SQL_H__

0 comments on commit d6b5be5

Please sign in to comment.