aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Maelstrom
diff options
context:
space:
mode:
authorAqua Deus <95978183+aquadeus@users.noreply.github.com>2022-01-22 14:52:05 +0100
committerGitHub <noreply@github.com>2022-01-22 14:52:05 +0100
commit0bbdfc6112835396992473c940ae619598f64ec2 (patch)
tree96e940b5752265ed1f3f38dd8166363b203a90b3 /src/server/scripts/Maelstrom
parentc2dd07aa32f5071b7f48819b44344060eae1be06 (diff)
Scripts/Spells: Move spell_anchor_here to generic because is used by more than one boss (#27641)
Diffstat (limited to 'src/server/scripts/Maelstrom')
-rw-r--r--src/server/scripts/Maelstrom/Stonecore/stonecore.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/server/scripts/Maelstrom/Stonecore/stonecore.cpp b/src/server/scripts/Maelstrom/Stonecore/stonecore.cpp
index fafd15da0b7..ba6b5e7bca2 100644
--- a/src/server/scripts/Maelstrom/Stonecore/stonecore.cpp
+++ b/src/server/scripts/Maelstrom/Stonecore/stonecore.cpp
@@ -297,34 +297,6 @@ class spell_force_of_earth : public SpellScriptLoader
}
};
-// 45313 - Anchor Here
-class spell_sc_anchor_here : public SpellScriptLoader
-{
-public:
- spell_sc_anchor_here() : SpellScriptLoader("spell_sc_anchor_here") { }
-
- class spell_sc_anchor_here_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_sc_anchor_here_SpellScript);
-
- void HandleScript(SpellEffIndex /*effIndex*/)
- {
- if (Creature* creature = GetHitUnit()->ToCreature())
- creature->SetHomePosition(creature->GetPositionX(), creature->GetPositionY(), creature->GetPositionZ(), creature->GetOrientation());
- }
-
- void Register() override
- {
- OnEffectHitTarget += SpellEffectFn(spell_sc_anchor_here_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
- }
- };
-
- SpellScript* GetSpellScript() const override
- {
- return new spell_sc_anchor_here_SpellScript();
- }
-};
-
// 93167 - Twilight Documents
class spell_sc_twilight_documents : public SpellScriptLoader
{
@@ -429,7 +401,6 @@ void AddSC_stonecore()
{
new npc_sc_millhouse_manastorm();
new spell_force_of_earth();
- new spell_sc_anchor_here();
new spell_sc_twilight_documents();
new spell_sc_quake();
new at_sc_corborus_intro();