mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Scripted/IcecrownCitadel: Remove spell script for lk play movie
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DELETE FROM `spell_script_names` WHERE `spell_id`=73159;
|
||||
@@ -343,9 +343,7 @@ enum MiscData
|
||||
SOUND_PAIN = 17360, // separate sound, not attached to any text
|
||||
|
||||
EQUIP_ASHBRINGER_GLOWING = 50442,
|
||||
EQUIP_BROKEN_FROSTMOURNE = 50840,
|
||||
|
||||
MOVIE_FALL_OF_THE_LICH_KING = 16,
|
||||
EQUIP_BROKEN_FROSTMOURNE = 50840
|
||||
};
|
||||
|
||||
enum Misc
|
||||
@@ -3165,41 +3163,6 @@ class spell_the_lich_king_jump_remove_aura : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
class spell_the_lich_king_play_movie : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_the_lich_king_play_movie() : SpellScriptLoader("spell_the_lich_king_play_movie") { }
|
||||
|
||||
class spell_the_lich_king_play_movie_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_the_lich_king_play_movie_SpellScript);
|
||||
|
||||
bool Validate(SpellInfo const* /*spell*/) OVERRIDE
|
||||
{
|
||||
if (!sMovieStore.LookupEntry(MOVIE_FALL_OF_THE_LICH_KING))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void HandleScript(SpellEffIndex effIndex)
|
||||
{
|
||||
PreventHitDefaultEffect(effIndex);
|
||||
if (Player* player = GetHitPlayer())
|
||||
player->SendMovieStart(MOVIE_FALL_OF_THE_LICH_KING);
|
||||
}
|
||||
|
||||
void Register() OVERRIDE
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_the_lich_king_play_movie_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const OVERRIDE
|
||||
{
|
||||
return new spell_the_lich_king_play_movie_SpellScript();
|
||||
}
|
||||
};
|
||||
|
||||
class achievement_been_waiting_long_time : public AchievementCriteriaScript
|
||||
{
|
||||
public:
|
||||
@@ -3270,7 +3233,6 @@ void AddSC_boss_the_lich_king()
|
||||
new spell_the_lich_king_jump();
|
||||
new spell_the_lich_king_jump_remove_aura();
|
||||
new spell_trigger_spell_from_caster("spell_the_lich_king_mass_resurrection", SPELL_MASS_RESURRECTION_REAL);
|
||||
new spell_the_lich_king_play_movie();
|
||||
new achievement_been_waiting_long_time();
|
||||
new achievement_neck_deep_in_vile();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user