Scripts/Misc: Moved Submerge script to spell_generic

(cherry picked from commit 9153ad621e)
This commit is contained in:
Keader
2021-08-15 16:35:59 -03:00
committed by Shauren
parent 9bee960880
commit 6bc9674167
3 changed files with 22 additions and 18 deletions

View File

@@ -869,23 +869,6 @@ class spell_xt002_tympanic_tantrum : public SpellScript
}
};
// 37751 - Submerged
class spell_xt002_submerged : public SpellScript
{
PrepareSpellScript(spell_xt002_submerged);
void HandleScript(SpellEffIndex /*eff*/)
{
if (Creature* target = GetHitCreature())
target->SetStandState(UNIT_STAND_STATE_SUBMERGED);
}
void Register() override
{
OnEffectHitTarget += SpellEffectFn(spell_xt002_submerged::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
// 65032 - 321-Boombot Aura
class spell_xt002_321_boombot_aura : public AuraScript
{
@@ -1012,7 +995,6 @@ void AddSC_boss_xt002()
RegisterSpellScript(spell_xt002_heart_overload_periodic);
RegisterSpellScript(spell_xt002_energy_orb);
RegisterSpellScript(spell_xt002_tympanic_tantrum);
RegisterSpellScript(spell_xt002_submerged);
RegisterSpellScript(spell_xt002_321_boombot_aura);
RegisterSpellScript(spell_xt002_exposed_heart);