DELETE FROM `spell_chain` WHERE `spell_id` IN (
25202,25203,25208,25210,25212,25213,25217,25218,25221,25222,25225,25231,25233,25234,25235,25236,25241,
25242,25248,25258,25264,25266,25269,25272,25275,25308,25312,25331,25363,25364,25367,25368,25372,25375,
25379,25380,25384,25387,25389,25391,25396,25420,25422,25423,25429,25431,25433,25435,25437,25439,25441,
25442,25446,25448,25449,25450,25454,25457,25464,25467,25470,25479,25485,25489,25500,25505,25508,25509,
25525,25528,25533,25546,25547,25552,25557,25560,25563,25567,25570,25574,25577,25585,25587,25596,26839,
26861,26862,26863,26864,26865,26866,26867,26884,26889,26892,26969,26978,26979,26980,26981,26982,26983,
26984,26985,26986,26987,26988,26989,26990,26992,26993,26994,26995,26996,26997,26998,26999,27001,27002,
27003,27005,27006,27008,27009,27011,27012,27013,27014,27015,27016,27018,27019,27020,27021,27022,27023,
27025,27044,27045,27046,27065,27066,27067,27068,27070,27071,27072,27073,27074,27075,27078,27079,27080,
27082,27085,27086,27087,27088,27090,27124,27125,27126,27128,27130,27131,27132,27133,27134,27135,27136,
27137,27138,27139,27140,27141,27142,27143,27144,27145,27147,27148,27154,27155,27158,27166,27173,27174,
27180,27209,27210,27211,27212,27213,27215,27216,27217,27218,27219,27220,27221,27222,27223,27224,27226,
27228,27229,27230,27238,27250,27259,27260,27263,27264,27265,27266,27282,27283,27441,27448,28172,28176,
28189,28275,29704,29707,29722,30016,30022,30324,30330,30356,30357,30459,30545,30546,30908,30909,30910,
30911,30912,31661,31785,31935,32231,32379,32645,32684,32699,32700,32796,32996,33041,33042,33043,33072,
33405,33717,33776,33933,33938,33944,33946,34411,34412,34413,34861,34863,34864,34865,34866,34914,34916,
34917,36916,37420,38692,38697,38699,38704,38764,38768
);

INSERT INTO `spell_chain` VALUES
-- Druid
(26978,25297,5185,12),
(26979,26978,5185,13),
(26980,9858,8936,10),
(26981,25299,774,12),
(26982,26981,774,13),
(26983,9863,740,5),
(26984,9912,5176,9),
(26985,26984,5176,10),
(26986,25298,2912,8),
(26987,9835,8921,11),
(26988,26987,8921,12),
(26989,9853,339,7),
(26990,9885,1126,8),
(26992,9910,467,7),
(26993,9907,770,5),
(26994,20748,20484,6),
(26995,9901,2908,4),
(26996,9881,6807,8),
(26997,9908,779,6),
(26998,9898,99,6),
(26999,22896,22842,4),
(27001,9830,5221,6),
(27002,27001,5221,7),
(27003,9904,1822,5),
(27005,9867,6785,5),
(27006,9827,9005,4),
(27008,9896,1079,7),
(27009,17329,16689,7),
(27011,17392,16857,5),
(27012,17402,16914,4),
(27013,24977,5570,6),
-- Hunter
(27014,14266,2973,9),
(27015,14273,781,4),
(27016,25295,1978,10),
(27018,14280,3034,4),
(27019,14287,3044,9),
(27020,15632,20736,7),
(27021,25294,2643,6),
(27022,14295,1510,4),
(27023,14305,13795,6),
(27025,14317,13813,4),
(27044,25296,13165,8),
(27045,20190,20043,3),
(27046,13544,136,8),
(27065,20904,19434,7),
(27066,20906,19506,4),
(27067,20910,19306,4),
(27068,24133,19386,4),
(36916,14271,1495,5),
-- Mage
(27070,25306,133,13),
(27071,25304,116,12),
(27072,27071,116,13),
(27073,10207,2948,8),
(27074,27073,2948,9),
(27075,25345,5143,9),
(27078,10199,2136,8),
(27079,27078,2136,9),
(27080,10202,1449,7),
(27082,27080,1449,8),
(27085,10187,10,7),
(27086,10216,2120,7),
(27087,10161,120,6),
(27088,10230,122,5),
(27090,37420,5504,9),
(27124,10220,7302,5),
(27125,22783,6117,4),
(27126,10157,1459,6),
(27128,10225,543,6),
(27130,10170,1008,5),
(27131,10193,1463,7),
(27132,18809,11366,9),
(27133,13021,11113,6),
(27134,13033,11426,5),
(31661,0,31661,1),
(32796,28609,6143,6),
(33041,31661,31661,2),
(33042,33041,31661,3),
(33043,33042,31661,4),
(33405,27134,11426,6),
(33717,28612,587,8),
(33933,27133,11113,7),
(33938,27132,11366,10),
(33944,10174,604,6),
(33946,27130,1008,6),
(37420,10140,5504,8),
(38692,27070,133,14),
(38697,27072,116,14),
(38699,27075,5143,10),
(38704,38699,5143,11),
-- Paladin
(27135,25292,635,10),
(27136,27135,635,11),
(27137,19943,19750,7),
(27138,10314,879,7),
(27139,10318,2812,3),
(27140,25291,19740,8),
(27141,25916,25782,3),
(27142,25290,19742,7),
(27143,25918,25894,3),
(27144,19979,19977,4),
(27145,25890,25890,2),
(27147,20729,6940,3),
(27148,27147,6940,4),
(27154,10310,633,4),
(27155,20293,21084,9),
(27158,20308,21082,7),
(27166,20357,20166,4),
(27173,20924,26573,6),
(27174,20930,20473,4),
(27180,24239,24275,4),
(31785,0,31785,1),
(31935,0,31935,1),
(32699,31935,31935,2),
(32700,32699,31935,3),
(33072,27174,20473,5),
(33776,31785,31785,2),
-- Priest
(25210,25314,2060,6),
(25213,25210,2060,7),
(25217,10901,17,11),
(25218,25217,17,12),
(25221,25315,139,11),
(25222,25221,139,12),
(25233,10917,2061,8),
(25235,25233,2061,9),
(25308,25316,596,6),
(25312,27841,14752,5),
(25331,27801,15237,7),
(25363,10934,585,9),
(25364,25363,585,10),
(25367,10894,589,9),
(25368,25367,589,10),
(25372,10947,8092,10),
(25375,25372,8092,11),
(25379,10876,8129,6),
(25380,25379,8129,7),
(25384,15261,14914,9),
(25387,18807,15407,7),
(25389,10938,1243,7),
(25429,10942,586,7),
(25431,10952,588,7),
(25433,10958,976,4),
(25435,20770,2006,6),
(25437,19243,13908,8),
(25441,19275,13896,6),
(25446,19305,10797,8),
(25450,19293,2651,6),
(25467,19280,2944,7),
(25470,19285,9035,7),
(25596,10953,453,4),
(28275,27871,724,4),
(32379,0,32379,1),
(32996,32379,32379,2),
(34861,0,34861,1),
(34863,34861,34861,2),
(34864,34863,34861,3),
(34865,34864,34861,4),
(34866,34865,34861,5),
(34914,0,34914,1),
(34916,34914,34914,2),
(34917,34916,34914,3),
-- Rogue
(26839,11290,703,7),
(26861,11294,1752,9),
(26862,26861,1752,10),
(26863,25300,53,10),
(26864,17348,16511,4),
(26865,31016,2098,10),
(26866,11198,8647,6),
(26867,11275,1943,7),
(26884,26839,703,8),
(26889,1857,1856,3),
(26892,11343,8681,7),
(26969,25347,2835,6),
(27282,26969,2835,7),
(27283,13230,13220,5),
(27441,11269,8676,7),
(27448,25302,1966,6),
(32645,0,32645,1),
(32684,32645,32645,2),
(34411,1329,1329,2),
(34412,34411,1329,3),
(34413,34412,1329,4),
(38764,11286,1776,6),
(38768,1769,1766,5),
-- shaman
(25391,25357,331,11),
(25396,25391,331,12),
(25420,10468,8004,7),
(25422,10623,1064,4),
(25423,25422,1064,5),
(25439,10605,421,5),
(25442,25439,421,6),
(25448,15208,403,11),
(25449,25448,403,12),
(25454,10414,8042,8),
(25457,29228,8050,7),
(25464,10473,8056,5),
(25479,16316,8017,8),
(25485,25479,8017,9),
(25489,16342,8024,7),
(25500,16356,8033,6),
(25505,16362,8232,5),
(25508,10408,8071,7),
(25509,25508,8071,8),
(25525,10428,5730,7),
(25528,25361,8075,6),
(25533,10438,3599,7),
(25546,11315,1535,6),
(25547,25546,1535,7),
(25552,10587,8190,5),
(25557,16387,8227,5),
(25560,10479,8181,4),
(25563,10538,8184,4),
(25567,10463,5394,6),
(25570,10497,5675,5),
(25574,10601,10595,4),
(25577,15112,15107,4),
(25585,10614,8512,4),
(25587,25585,8512,5),
-- warlock
(27209,25307,686,11),
(27210,17923,5676,7),
(27211,17924,6353,3),
(27212,11678,5740,5),
(27213,11684,1949,4),
(27215,25309,348,9),
(27216,25311,172,8),
(27217,11675,1120,5),
(27218,11713,980,7),
(27219,11700,689,7),
(27220,27219,689,8),
(27221,11704,5138,5),
(27222,11689,1454,7),
(27223,17926,6789,4),
(27224,11708,702,7),
(27226,11717,704,5),
(27228,11722,1490,4),
(27229,17937,17862,3),
(27230,11730,6201,6),
(27238,20757,693,6),
(27250,17953,6366,5),
(27259,11695,755,8),
(27260,11735,706,6),
(27263,18871,17877,7),
(27264,18881,18265,5),
(27265,18938,18220,4),
(27266,18932,17962,5),
(28172,17728,2362,4),
(28176,0,28176,1),
(28189,28176,28176,2),
(29722,0,29722,1),
(30459,27210,5676,8),
(30545,27211,6353,4),
(30546,27263,17877,8),
(30908,27221,5138,6),
(30909,27224,702,8),
(30910,603,603,2),
(30911,27264,18265,6),
(30912,27266,17962,6),
(32231,29722,29722,2),
-- warrior
(25202,11556,1160,6),
(25203,25202,1160,7),
(25208,11574,772,8),
(25212,7373,1715,4),
(25225,11597,7386,6),
(25231,20569,845,6),
(25234,20662,5308,6),
(25236,25234,5308,7),
(25241,11605,1464,5),
(25242,25241,1464,6),
(25248,21553,12294,5),
(25258,23925,23922,5),
(25264,11581,6343,7),
(25266,20560,694,6),
(25269,25288,6572,7),
(25272,20617,20252,4),
(25275,25272,20252,5),
(29704,1672,72,4),
(29707,25286,78,10),
(30016,20243,20243,2),
(30022,30016,20243,3),
(30324,29707,78,11),
(30330,25248,12294,6),
(30356,25258,23922,6),
(30357,25269,6572,8);

