DROP TABLE IF EXISTS `spell_affect`;
CREATE TABLE `spell_affect` (
  `entry` smallint(5) unsigned NOT NULL default '0',
  `effectId` tinyint(3) unsigned NOT NULL default '0',
  `SpellId` smallint(5) unsigned NOT NULL default '0',
  `SchoolMask` tinyint(3) unsigned NOT NULL default '0',
  `Category` smallint(5) unsigned NOT NULL default '0',
  `SkillID` smallint(5) unsigned NOT NULL default '0',
  `SpellFamily` tinyint(3) unsigned NOT NULL default '0',
  `SpellFamilyMask` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`entry`,`effectId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `spell_affect` VALUES
(11070, 1, 0, 0, 0, 0, 0, 32),
(11069, 1, 0, 0, 0, 0, 0, 1),
(11083, 0, 0, 0, 0, 8, 0, 0),
(11124, 0, 0, 0, 0, 8, 0, 0),
(11151, 0, 0, 0, 0, 6, 0, 0),
(11160, 0, 0, 0, 0, 6, 0, 0),
(11175, 1, 0, 0, 0, 0, 0, 1048576),
(11207, 0, 0, 0, 0, 6, 0, 0),
(11222, 0, 0, 0, 0, 237, 0, 0),
(11242, 0, 0, 0, 0, 0, 0, 536872960),
(11247, 0, 0, 0, 0, 0, 0, 8192),
(11370, 0, 0, 0, 0, 8, 0, 0),
(12042, 0, 0, 0, 0, 0, 3, 0),
(12042, 1, 0, 0, 0, 0, 3, 0),
(12042, 2, 0, 0, 0, 0, 3, 0),
(12043, 0, 0, 0, 0, 0, 3, 0),
(12338, 1, 0, 0, 0, 0, 0, 1),
(12339, 1, 0, 0, 0, 0, 0, 1),
(12340, 1, 0, 0, 0, 0, 0, 1),
(12341, 1, 0, 0, 0, 0, 0, 1),
(12351, 0, 0, 0, 0, 8, 0, 0),
(12378, 0, 0, 0, 0, 8, 0, 0),
(12398, 0, 0, 0, 0, 8, 0, 0),
(12399, 0, 0, 0, 0, 8, 0, 0),
(12400, 0, 0, 0, 0, 8, 0, 0),
(12467, 0, 0, 0, 0, 0, 0, 536872960),
(12469, 0, 0, 0, 0, 0, 0, 536872960),
(12473, 1, 0, 0, 0, 0, 0, 32),
(12497, 0, 0, 0, 0, 0, 0, 1048576),
(12518, 0, 0, 0, 0, 6, 0, 0),
(12519, 0, 0, 0, 0, 6, 0, 0),
(12536, 0, 0, 0, 0, 0, 3, 0),
(12569, 1, 0, 0, 0, 0, 0, 1048576),
(12571, 1, 0, 0, 0, 0, 0, 1048576),
(12672, 0, 0, 0, 0, 6, 0, 0),
(12839, 0, 0, 0, 0, 237, 0, 0),
(12840, 0, 0, 0, 0, 237, 0, 0),
(12841, 0, 0, 0, 0, 237, 0, 0),
(12842, 0, 0, 0, 0, 237, 0, 0),
(12952, 0, 0, 0, 0, 6, 0, 0),
(12953, 0, 0, 0, 0, 6, 0, 0),
(12954, 0, 0, 0, 0, 6, 0, 0),
(12957, 0, 0, 0, 0, 6, 0, 0),
(15047, 0, 0, 0, 0, 6, 0, 0),
(15052, 0, 0, 0, 0, 6, 0, 0),
(15053, 0, 0, 0, 0, 6, 0, 0),
(16757, 0, 0, 0, 0, 0, 0, 160),
(16758, 0, 0, 0, 0, 0, 0, 160),
(16763, 1, 0, 0, 0, 0, 0, 32),
(16765, 1, 0, 0, 0, 0, 0, 32),
(16766, 1, 0, 0, 0, 0, 0, 32),
(22008, 0, 0, 0, 0, 0, 3, 0),
(23025, 0, 0, 0, 0, 0, 0, 65536),
(28682, 0, 0, 0, 0, 8, 0, 0),
(28763, 0, 0, 0, 0, 0, 0, 67108864),
(29438, 0, 0, 20, 0, 0, 0, 0),
(29439, 0, 0, 20, 0, 0, 0, 0),
(29440, 0, 0, 20, 0, 0, 0, 0),
(29976, 0, 0, 0, 0, 0, 3, 0),
(31569, 0, 0, 0, 0, 0, 0, 65536),
(31570, 0, 0, 0, 0, 0, 0, 65536),
(31571, 0, 12536, 0, 0, 0, 0, 0),
(31572, 0, 12536, 0, 0, 0, 0, 0),
(31573, 0, 12536, 0, 0, 0, 0, 0),
(31579, 0, 0, 0, 0, 0, 0, 2048),
(31579, 1, 0, 0, 0, 0, 0, 2048),
(31582, 0, 0, 0, 0, 0, 0, 2048),
(31582, 1, 0, 0, 0, 0, 0, 2048),
(31583, 0, 0, 0, 0, 0, 0, 2048),
(31583, 1, 0, 0, 0, 0, 0, 2048),
(31656, 0, 0, 0, 0, 0, 0, 1),
(31657, 0, 0, 0, 0, 0, 0, 1),
(31658, 0, 0, 0, 0, 0, 0, 1),
(31659, 0, 0, 0, 0, 0, 0, 1),
(31660, 0, 0, 0, 0, 0, 0, 1),
(31682, 0, 0, 0, 0, 0, 0, 32),
(31682, 1, 0, 0, 0, 0, 0, 32),
(31683, 0, 0, 0, 0, 0, 0, 32),
(31683, 1, 0, 0, 0, 0, 0, 32),
(31684, 0, 0, 0, 0, 0, 0, 32),
(31684, 1, 0, 0, 0, 0, 0, 32),
(31685, 1, 0, 0, 0, 0, 0, 32),
(31686, 0, 0, 0, 0, 0, 0, 32),
(31686, 1, 0, 0, 0, 0, 0, 32),
(33066, 0, 0, 0, 0, 0, 0, 2),
(35578, 0, 0, 0, 0, 0, 3, 0),
(35581, 0, 0, 0, 0, 0, 3, 0),
(36032, 0, 0, 0, 0, 0, 0, 536870912),
(36032, 1, 0, 0, 0, 0, 0, 536870912),
(37423, 0, 0, 0, 0, 0, 0, 4),
(37438, 0, 0, 0, 0, 0, 0, 33),
(37439, 0, 12043, 0, 0, 0, 0, 0),
(37439, 1, 0, 0, 0, 0, 0, 8388608),
(37439, 2, 11958, 0, 0, 0, 0, 0),
(37441, 0, 0, 0, 0, 0, 0, 4096),
(37441, 1, 0, 0, 0, 0, 0, 4096),
(37447, 0, 0, 0, 30, 0, 0, 0),
(38396, 0, 0, 0, 0, 0, 0, 67108864),
(38397, 0, 0, 0, 0, 0, 0, 2081);
