DROP TABLE IF EXISTS spell_scripts;
CREATE TABLE spell_scripts(
Id INT NOT NULL COMMENT 'Spell ID',
ScriptName CHAR(64) NOT NULL COMMENT 'Core Spell Script Name',
PRIMARY KEY(Id)
);

-- Classic
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(720,'spell_entangle_fankriss'),
(731,'spell_entangle_fankriss'),
(785,'spell_true_fulfillment'),
(794,'spell_initialize_images'),
(802,'spell_mutate_bug'),
(1121,'spell_entangle_fankriss'),
(2400,'spell_anubisath_share_powers'),
(3730,'spell_initialize_image'),
(7054,'spell_forsaken_skill'),
(12639,'spell_summon_hakkar'),
(12948,'spell_hakkar_summoned'),
(13278,'spell_gdr_channel'),
(13493,'spell_gdr_periodic'),
(16380,'spell_greater_invisibility_mob'),
(17016,'spell_placing_beacon_torch'),
(17244,'spell_anastari_possess'),
(19832,'spell_possess_razorgore'),
(19872,'spell_calm_dragonkin'),
(19873,'spell_destroy_egg'),
(20038,'spell_explosion_razorgore'),
(21651,'spell_opening_capping'),
(23226,'spell_ritual_candle_aura'),
(24693,'spell_hakkar_power_down'),
(25684,'spell_summon_mana_fiends_moam'),
(25813,'spell_conjure_dream_rift'),
(25885,'spell_viscidus_summon_globs'),
(25926,'spell_viscidus_frost_weakness'),
(25937,'spell_viscidus_freeze'),
(26003,'spell_viscidus_suicide'),
(26009,'spell_cthun_periodic_rotate'),
(26084,'spell_aq_whirlwind'),
(26136,'spell_cthun_periodic_rotate'),
(26137,'spell_cthun_rotate_trigger'),
(26152,'spell_cthun_periodic_eye_trigger'),
(26180,'spell_huhuran_wyvern_string'),
(26205,'spell_hook_tentacle_trigger'),
(26217,'spell_cthun_tentacles_summon'),
(26230,'spell_cthun_exit_stomach'),
(26237,'spell_cthun_tentacles_summon'),
(26256,'spell_cthun_check_reset'),
(26275,'spell_wondervolt_trap'),
(26332,'spell_cthun_mouth_tentacle'),
(26398,'spell_cthun_tentacles_summon'),
(26476,'spell_cthun_digestive_acid_periodic'),
(26584,'spell_summon_toxic_slime'),
(26585,'spell_viscidus_despawn_adds'),
(26591,'spell_teleport_image'),
(26608,'spell_viscidus_despawn_adds'),
(26619,'spell_periodic_scarab_trigger'),
(26686,'spell_aq_whirlwind'),
(26767,'spell_cthun_tentacles_summon'),
(26769,'spell_cthun_periodic_eye_trigger'),
(28006,'spell_arcane_cloaking'),
(28282,'spell_ashbringer_item'),
(27808,'spell_kel_thuzad_frost_blast'),
(28307,'spell_patchwerk_hatefulstrike'),
(28522,'spell_sapphiron_icebolt_aura'),
(28526,'spell_sapphiron_icebolt'),
(28560,'spell_sapphiron_blizzard'),
(28007,'spell_summon_unrelenting'),
(28009,'spell_summon_unrelenting'),
(28011,'spell_summon_unrelenting'),
(28059,'spell_thaddius_charge_buff'),
(28062,'spell_thaddius_charge_damage'),
(28084,'spell_thaddius_charge_buff'),
(28085,'spell_thaddius_charge_damage'),
(28089,'spell_thaddius_polarity_shift'),
(28169,'spell_grobbulus_mutating_injection'),
(28236,'spell_gluth_zombie_search'),
(28238,'spell_gluth_zombie_search_heal'),
(28374,'spell_gluth_decimate'),
(28408,'spell_chains_kel_thuzad'),
(28415,'spell_trigger_KT_add'),
(28416,'spell_trigger_KT_add'),
(28417,'spell_trigger_KT_add'),
(28455,'spell_trigger_KT_add'),
(28441,'spell_ab_effect_000'),
(28617,'spell_web_wrap'),
(28628,'spell_clear_web_wrap'),
(28629,'spell_clear_web_wrap'),
(28732,'spell_faerlina_widow_embrace'),
(28749,'spell_check_gothik_side'),
(28781,'spell_gothik_side_assault'),
(29201,'spell_loatheb_corrupted_mind'),
(29330,'spell_sapphiron_despawn_buffet'),
(29351,'spell_plague_wave_controller'),
(29682,'spell_gluth_call_all_zombies'),
(29874,'spell_gothik_side_assault'),
(29875,'spell_check_gothik_side'),
(29897,'spell_icecrown_guardian_periodic'),
(30114,'spell_plague_wave_controller'),
(30132,'spell_sapphiron_iceblock');

-- TBC
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(38048,'spell_curse_of_pain'),
(430,'spell_drink'),
(431,'spell_drink'),
(432,'spell_drink'),
(1133,'spell_drink'),
(1135,'spell_drink'),
(1137,'spell_drink'),
(10250,'spell_drink'),
(22734,'spell_drink'),
(27089,'spell_drink'),
(34291,'spell_drink'),
(43706,'spell_drink'),
(46755,'spell_drink'),
(49472,'spell_drink'),
(42144,'spell_horseman_create_water_bucket'),
(42074,'spell_horseman_fire'),
(43885,'spell_horseman_maniacal_laugh'),
(43884,'spell_horseman_maniacal_laugh_delayed'),
(43886,'spell_horseman_maniacal_laugh_delayed'),
(42140,'spell_horseman_start_fire_periodic'),
(42143,'spell_horseman_start_fire_target_test'),
(43711,'spell_horseman_start_fire_target_test'),
(42132,'spell_horseman_start_fire'),
(42079,'spell_horseman_start_fire'),
(43715,'spell_horseman_start_fire'),
(42637,'spell_horseman_conflagrate_periodic'),
(42638,'spell_horseman_conflagrate_target_test'),
(42339,'spell_bucket_lands'),
(42348,'spell_fire_extinguish'),
(42151,'spell_all_fires_out_test'),
(43321,'spell_human_child_laughter'),
(43324,'spell_orc_child_laughter'),
(43323,'spell_human_child_crying'),
(42178,'spell_invisible_campfire_remove'),
(32811,'spell_greater_invisibility_mob'),
(29969,'spell_summon_blizzard'),
(29970,'spell_dispel_blizzard'),
(29979,'spell_massive_magnetic_pull'),
(30004,'spell_flame_wreath'),
(29770,'spell_midnight_mount'),
(29883,'spell_blink_arcane_anomaly'),
(29907,'spell_astral_bite'),
(29690,'spell_inebriate_removal'),
(29448,'spell_moroes_vanish'),
(30115,'spell_sacrifice'),
(31702,'spell_someone_grab_me'),
(31703,'spell_magnetic_pull'),
(31704,'spell_levitate'),
(30166,'spell_shadow_grasp_magtheridon'),
(30410,'spell_shadow_grasp_cube'),
(30658,'spell_quake_magtheridon'),
(30571,'spell_quake_magtheridon_knockback'),
(30425,'spell_portal_attunement'),
(30469,'spell_nether_beam'),
(38546,'spell_face_random_target'),
(30659,'spell_fel_infusion'),
(31427,'spell_allergies'),
(35139,'spell_throw_booms_doom'),
(35150,'spell_nether_charge_passive'),
(37670,'spell_nether_charge_timer'),
(33676,'spell_incite_chaos'),
(30843,'spell_enfeeble'),
(41624,'spell_enfeeble_removal'),
(32264,'spell_shirrak_inhibit_magic'),
(33332,'spell_suppression_blast'),
(32830,'spell_auchenai_possess'),
(32756,'spell_shadowy_disguise'),
(36557,'spell_cursed_scarab_periodic'),
(36560,'spell_cursed_scarab_despawn_periodic'),
(34874,'spell_despawn_underbog_mushrooms'),
(36374,'spell_summon_smoke_beacon'),
(37591,'spell_inebriate_removal'),
(35754,'spell_soccothrates_charge'),
(31617,'spell_raise_dead_hyjal'),
(31624,'spell_raise_dead_hyjal'),
(31625,'spell_raise_dead_hyjal'),
(38028,'spell_watery_grave'),
(34231,'spell_increased_holy_light_healing'),
(33793,'spell_vazruden_liquid_fire_script'),
(33794,'spell_vazruden_liquid_fire_script'),
(30926,'spell_vazruden_liquid_fire_script'),
(36921,'spell_vazruden_liquid_fire_script'),
(30700,'spell_face_highest_threat'),
(36153,'spell_soulbind'),
(35181,'spell_dive_bomb'),
(36460,'spell_ultra_deconsolodation_zapper'),
(37431,'spell_lurker_spout_initial'),
(37429,'spell_lurker_spout_turning'),
(37430,'spell_lurker_spout_turning'),
(37851,'spell_tag_for_single_use'),
(37896,'spell_to_infinity_and_above'),
(38606,'spell_exorcism_feather'),
(38640,'spell_koi_koi_death'),
(38915,'spell_mental_interference'),
(38544,'spell_coax_marmot'),
(40309,'spell_possess_demon_shartuul'),
(40222,'spell_smash_shield'),
(40503,'spell_possession_transfer'),
(41962,'spell_possession_transfer'),
(40821,'spell_touch_of_madness'),
(40824,'spell_madness_rift'),
(40605,'spell_eredar_pre_gate_beam'),
(40563,'spell_throw_axe'),
(40493,'spell_super_jump'),
(41589,'spell_cleansing_flame'),
(41939,'spell_rampaging_charge'),
(40736,'spell_death_blast'),
(41579,'spell_iceblast'),
(40658,'spell_absorb_life'),
(40659,'spell_shartuul_dive_bomb'),
(40557,'spell_flying_attack_aura'),
(40556,'spell_fireball_barrage'),
(40741,'spell_chaos_strike'),
(41629,'spell_chaos_strike_transform'),
(41593,'spell_shivan_shapeshift_form'),
(41594,'spell_shivan_shapeshift_form'),
(41595,'spell_shivan_shapeshift_form'),
(40675,'spell_build_portable_fel_cannon'),
(40777,'spell_stun_rope_attunement'),
(40186,'spell_summon_blossom_move_target'),
(40251,'spell_shadow_of_death'),
(41289,'spell_ethereal_ring_signal_flare'),
(41999,'spell_shadow_of_death_remove'),
(38358,'spell_tidal_surge_caribdis'),
(37676,'spell_insidious_whisper'),
(37750,'spell_clear_consuming_madness'),
(37640,'spell_leotheras_whirlwind_aura'),
(37641,'spell_leotheras_whirlwind_proc'),
(33572,'spell_gronn_lords_grasp'),
(38511,'spell_vashj_persuasion'),
(38573,'spell_spore_drop_effect'),
(33040,'spell_wota_main_cast_and_jump'),
(33049,'spell_wota_main_cast_and_jump'),
(33045,'spell_wota_dot'),
(33048,'spell_wota_search'),
(33229,'spell_wota_remove'),
(36812,'spell_soaring'),
(37910,'spell_soaring'),
(37962,'spell_soaring'),
(37968,'spell_soaring'),
(42783,'spell_wrath_of_the_astromancer'),
(45043,'spell_power_circle'),
(44006,'spell_teleport_self_akilzon'),
(43359,'spell_call_of_the_beast'),
(43681,'spell_inactive'),
(40084,'spell_harpooners_mark'),
(31258,'spell_winterchill_death_and_decay'),
(31436,'spell_split_damage'),
(31447,'spell_mark_of_kazrogal'),
(31347,'spell_azgalor_doom'),
(41625,'spell_fel_rage_3'),
(40214,'spell_dragonmaw_illusion_base'),
(42016,'spell_dragonmaw_illusion_transform'),
(39810,'spell_sparrowhawk_net'),
(34190,'spell_void_reaver_arcane_orb'),
(41034,'spell_spell_absorption'),
(35861,'spell_nether_vapor_summon'),
(35862,'spell_nether_vapor_summon'),
(35863,'spell_nether_vapor_summon'),
(35864,'spell_nether_vapor_summon'),
(35865,'spell_nether_vapor_summon_parent'),
(45960,'spell_nether_vapor_lightning'),
(39497,'spell_remove_weapons'),
(31298,'spell_anetheron_sleep'),
(41910,'spell_alar_phoenix_ember_blast'),
(33985,'spell_use_corpse'),
(34011,'spell_raise_dead'),
(34012,'spell_raise_dead'),
(34019,'spell_raise_dead'),
(41071,'spell_raise_dead'),
(40567,'spell_ogrila_flasks'),
(40568,'spell_ogrila_flasks'),
(40572,'spell_ogrila_flasks'),
(40573,'spell_ogrila_flasks'),
(40575,'spell_ogrila_flasks'),
(40576,'spell_ogrila_flasks'),
(41608,'spell_ogrila_flasks'),
(41609,'spell_ogrila_flasks'),
(41610,'spell_ogrila_flasks'),
(41611,'spell_ogrila_flasks'),
(46837,'spell_ogrila_flasks'),
(46839,'spell_ogrila_flasks'),
(40887,'spell_assist_bt'),
(40892,'spell_fixate_bt'),
(39581,'spell_storm_blink'),
(34630,'spell_scrap_reaver_spell'),
(41476,'spell_veras_vanish'),
(44935,'spell_razorthorn_root'),
(44881,'spell_charm_ravager'),
(44948,'spell_living_flare_detonator'),
(44877,'spell_living_flare_master'),
(44943,'spell_living_flare_unstable'),
(45188,'spell_dawnblade_attack'),
(38858,'spell_queldanas_shoot'),
(34800,'spell_getting_sleepy_aura'),
(43364,'spell_getting_sleepy_aura'),
(37156,'spell_tk_dive'),
(41951,'spell_supremus_random_target'),
(34438,'spell_unstable_affliction'),
(34439,'spell_unstable_affliction'),
(35183,'spell_unstable_affliction'),
(43723,'spell_demon_broiled_surprise'),
(42399,'spell_send_head'),
(43101,'spell_head_requests_body'),
(35831,'spell_ring_of_flame'),
(41914,'spell_parasitic_shadowfiend'),
(41917,'spell_parasitic_shadowfiend'),
(40647,'spell_shadow_prison'),
(33499,'spell_shape_of_the_beast'),
(44329,'spell_fel_crystal_dummy'),
(44320,'spell_mana_rage_selin'),
(40848,'spell_dragonmaw_knockdown_the_aggro_check'),
(40985,'spell_dragonmaw_knockdown_the_aggro_check'),
(40993,'spell_dragonmaw_knockdown_the_aggro_check'),
(41007,'spell_dragonmaw_knockdown_the_aggro_check'),
(41015,'spell_dragonmaw_knockdown_the_aggro_check'),
(41022,'spell_dragonmaw_knockdown_the_aggro_check'),
(45219,'spell_shattered_sun_marksman_shoot'),
(45223,'spell_shattered_sun_marksman_shoot'),
(45229,'spell_shattered_sun_marksman_shoot'),
(45233,'spell_shattered_sun_marksman_shoot'),
(32727,'spell_arena_preparation');

-- Wotlk


-- Hunter
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(1130,'spell_hunters_mark'),
(14323,'spell_hunters_mark'),
(14324,'spell_hunters_mark'),
(14325,'spell_hunters_mark'),
(34026,'spell_kill_command'),
(34477,'spell_misdirection'),
(34501,'spell_expose_weakness');

-- Priest
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(10060,'spell_power_infusion'),
(15268,'spell_blackout'),
(15323,'spell_blackout'),
(15324,'spell_blackout'),
(15325,'spell_blackout'),
(15326,'spell_blackout'),
(27827,'spell_spirit_of_redemption_heal'),
(32676,'spell_consume_magic'),
(33076,'spell_prayer_of_mending'),
(33206,'spell_pain_suppression'),
(34433,'spell_shadowfiend');

-- Paladin
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(21082,'spell_seal_of_the_crusader'),
(20162,'spell_seal_of_the_crusader'),
(20305,'spell_seal_of_the_crusader'),
(20306,'spell_seal_of_the_crusader'),
(20307,'spell_seal_of_the_crusader'),
(20308,'spell_seal_of_the_crusader'),
(27158,'spell_seal_of_the_crusader'),
(31789,'spell_righteous_defense'),
(31893,'spell_seal_of_blood_self_damage'),
(31898,'spell_seal_of_blood_self_damage');

-- Warlock
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(126,'spell_eye_of_kilrogg'),
(172,'spell_corruption'),
(6222,'spell_corruption'),
(6223,'spell_corruption'),
(7648,'spell_corruption'),
(11671,'spell_corruption'),
(11672,'spell_corruption'),
(25311,'spell_corruption'),
(27216,'spell_corruption'),
(980,'spell_curse_of_agony'),
(1014,'spell_curse_of_agony'),
(6217,'spell_curse_of_agony'),
(11711,'spell_curse_of_agony'),
(11712,'spell_curse_of_agony'),
(11713,'spell_curse_of_agony'),
(27218,'spell_curse_of_agony'),
(1454,'spell_life_tap'),
(1455,'spell_life_tap'),
(1456,'spell_life_tap'),
(11687,'spell_life_tap'),
(11688,'spell_life_tap'),
(11689,'spell_life_tap'),
(27222,'spell_life_tap'),
(18265,'spell_siphon_life'),
(18879,'spell_siphon_life'),
(18880,'spell_siphon_life'),
(18881,'spell_siphon_life'),
(27264,'spell_siphon_life'),
(30911,'spell_siphon_life'),
(25228,'spell_soul_link'),
(27243,'spell_seed_of_corruption'),
(35696,'spell_demonic_knowledge'),
(30108,'spell_unstable_affliction'),
(30404,'spell_unstable_affliction'),
(30405,'spell_unstable_affliction'),
(32379,'spell_shadow_word_death'),
(32996,'spell_shadow_word_death'),
(19505,'spell_devour_magic'),
(19731,'spell_devour_magic'),
(19734,'spell_devour_magic'),
(19736,'spell_devour_magic'),
(27276,'spell_devour_magic'),
(27277,'spell_devour_magic');

-- Pet Scaling
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(34902,'spell_hunter_pet_scaling_1'),
(34903,'spell_hunter_pet_scaling_2'),
(34904,'spell_hunter_pet_scaling_3'),

(34947,'spell_warlock_pet_scaling_1'),
(34956,'spell_warlock_pet_scaling_2'),
(34957,'spell_warlock_pet_scaling_3'),
(34958,'spell_warlock_pet_scaling_4'),

(35657,'spell_mage_pet_scaling_1'),
(35658,'spell_mage_pet_scaling_2'),
(35659,'spell_mage_pet_scaling_3'),
(35660,'spell_mage_pet_scaling_4'),

(35661,'spell_priest_pet_scaling_1'),
(35662,'spell_priest_pet_scaling_2'),
(35663,'spell_priest_pet_scaling_3'),
(35664,'spell_priest_pet_scaling_4'),

(35665,'spell_elemental_pet_scaling_1'),
(35666,'spell_elemental_pet_scaling_2'),
(35667,'spell_elemental_pet_scaling_3'),
(35668,'spell_elemental_pet_scaling_4'),

(35669,'spell_druid_pet_scaling_1'),
(35670,'spell_druid_pet_scaling_2'),
(35671,'spell_druid_pet_scaling_3'),
(35672,'spell_druid_pet_scaling_4'),

(35674,'spell_enhancement_pet_scaling_1'),
(35675,'spell_enhancement_pet_scaling_2'),
(35676,'spell_enhancement_pet_scaling_3'),

(36186,'spell_infernal_pet_scaling_1'),
(36188,'spell_infernal_pet_scaling_2'),
(36189,'spell_infernal_pet_scaling_3'),
(36190,'spell_infernal_pet_scaling_4');

-- Warrior
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(5308,'spell_warrior_execute'),
(20658,'spell_warrior_execute'),
(20660,'spell_warrior_execute'),
(20661,'spell_warrior_execute'),
(20662,'spell_warrior_execute'),
(25234,'spell_warrior_execute'),
(25236,'spell_warrior_execute'),
(20647,'spell_warrior_execute_damage'),
(34428,'spell_warrior_victory_rush');

-- Mage
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(11213,'spell_arcane_concentration'),
(12574,'spell_arcane_concentration'),
(12575,'spell_arcane_concentration'),
(12576,'spell_arcane_concentration'),
(12577,'spell_arcane_concentration');

-- Druid
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(5215,'spell_stealth'),
(6783,'spell_stealth'),
(9913,'spell_stealth'),
(8936,'spell_regrowth'),
(8938,'spell_regrowth'),
(8939,'spell_regrowth'),
(8940,'spell_regrowth'),
(8941,'spell_regrowth'),
(9750,'spell_regrowth'),
(9856,'spell_regrowth'),
(9857,'spell_regrowth'),
(9858,'spell_regrowth'),
(26980,'spell_regrowth');

-- Rogue
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(1784,'spell_stealth'),
(1785,'spell_stealth'),
(1786,'spell_stealth'),
(1787,'spell_stealth'),
(1856,'spell_vanish'),
(1857,'spell_vanish'),
(26889,'spell_vanish'),
(14185,'spell_preparation');

-- Shaman
INSERT INTO spell_scripts(Id, ScriptName) VALUES
(974,'spell_earth_shield'),
(32593,'spell_earth_shield'),
(32594,'spell_earth_shield'),
(324,'spell_damage_trigger_shield'),
(325,'spell_damage_trigger_shield'),
(905,'spell_damage_trigger_shield'),
(945,'spell_damage_trigger_shield'),
(8134,'spell_damage_trigger_shield'),
(8788,'spell_damage_trigger_shield'),
(10431,'spell_damage_trigger_shield'),
(10432,'spell_damage_trigger_shield'),
(24398,'spell_damage_trigger_shield'),
(33736,'spell_damage_trigger_shield');

-- Battleground and Outdoor PvP
-- Alterac Valley
INSERT INTO spell_scripts(Id, ScriptName) VALUES
-- Arathi basin
(23936,'spell_battleground_banner_trigger'),
(23932,'spell_battleground_banner_trigger'),
(23938,'spell_battleground_banner_trigger'),
(23935,'spell_battleground_banner_trigger'),
(23937,'spell_battleground_banner_trigger'),
-- Alterac Valley
(24677,'spell_battleground_banner_trigger'),
-- Zangarmarsh
(32433,'spell_outdoor_pvp_banner_trigger'),
(32438,'spell_outdoor_pvp_banner_trigger');
