Skip to content

Commit

Permalink
[10409] Restore work of 47230 and ranks
Browse files Browse the repository at this point in the history
  • Loading branch information
Laise committed Aug 26, 2010
1 parent f82aebb commit 2a2a7f1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
6 changes: 5 additions & 1 deletion sql/mangos.sql
Original file line number Diff line number Diff line change
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_10400_01_mangos_mangos_string` bit(1) default NULL
`required_10409_02_mangos_spell_proc_event` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';

--
Expand Down Expand Up @@ -16297,6 +16297,9 @@ INSERT INTO spell_chain VALUES
(28610,11740,6229,4,0),
(47890,28610,6229,5,0),
(47891,47890,6229,6,0),
/*Fel Synergy*/
(47230,0,47230,1,0),
(47231,47230,47230,2,0),
/*------------------
--(355)Affliction
------------------*/
Expand Down Expand Up @@ -18266,6 +18269,7 @@ INSERT INTO `spell_proc_event` VALUES
(47263, 0x20, 5, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 20),
(47264, 0x20, 5, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 20),
(47265, 0x20, 5, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 20),
(47230, 0x7F, 5, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
(47509, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 0),
(47516, 0x00, 6, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
(47569, 0x00, 6, 0x00004000, 0x00004000, 0x00004000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00004000, 0x00000000, 0.000000, 0.000000, 0),
Expand Down
3 changes: 3 additions & 0 deletions sql/updates/10409_01_mangos_spell_chain.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE db_version CHANGE COLUMN required_10400_01_mangos_mangos_string required_10409_01_mangos_spell_chain bit;

INSERT INTO spell_chain VALUES (47230, 0, 47230, 1, 0), (47231, 47230, 47230, 2, 0);
2 changes: 2 additions & 0 deletions sql/updates/10409_02_mangos_spell_proc_event.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE db_version CHANGE COLUMN required_10409_01_mangos_spell_chain required_10409_02_mangos_spell_proc_event bit;

4 changes: 4 additions & 0 deletions sql/updates/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ pkgdata_DATA = \
10365_01_mangos_creature_ai_scripts.sql \
10381_01_mangos_creature_model_race.sql \
10400_01_mangos_mangos_string.sql \
10409_01_mangos_spell_chain.sql \
10409_02_mangos_spell_proc_event.sql \
README

## Additional files to include when running 'make dist'
Expand Down Expand Up @@ -148,4 +150,6 @@ EXTRA_DIST = \
10365_01_mangos_creature_ai_scripts.sql \
10381_01_mangos_creature_model_race.sql \
10400_01_mangos_mangos_string.sql \
10409_01_mangos_spell_chain.sql \
10409_02_mangos_spell_proc_event.sql \
README
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10408"
#define REVISION_NR "10409"
#endif // __REVISION_NR_H__
2 changes: 1 addition & 1 deletion src/shared/revision_sql.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_CHARACTERS "required_10332_02_characters_pet_aura"
#define REVISION_DB_MANGOS "required_10400_01_mangos_mangos_string"
#define REVISION_DB_MANGOS "required_10409_02_mangos_spell_proc_event"
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
#endif // __REVISION_SQL_H__

1 comment on commit 2a2a7f1

@virusav
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this commit, I think, need the following changes:
INSERT INTO spell_proc_event VALUES (47230, 0x7F, 5, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0);
DELETE FROM spell_chain WHERE spell_id IN (47230,47231);

The kernel takes a chain of talent from Talent.dbc, so in the database records superfluous.

Please sign in to comment.