aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-07-14 07:34:03 +0000
committerShauren <shauren.trinity@gmail.com>2022-01-23 15:17:54 +0100
commite9cf3828bad44cf193d6c9717b392de7346157a5 (patch)
tree82f013fe88a01d23f2a902b28a28140035589b74 /src/server/scripts
parenta55801e35ed22fdcecbd656a894a7c8320c28743 (diff)
Core/Spells: Implement SPELL_EFFECT_ACTIVATE_OBJECT. (#23) (#24997)
* Core/Spells: Implement SPELL_EFFECT_ACTIVATE_OBJECT. (#23) Original research by @xvwyh. * Add missing sql update * Fix some build errors * Remove unused enum values * Change artkits from 0-4 to 0-3 * Remove unused code * Code review feedback * Fix sql * Remove artkit4 special case handling * Default initialize artKits * Code review feedback * Split sql into structure and data files Co-authored-by: Warpten <vertozor@gmail.com> (cherry picked from commit 203573db83fb1d3f141b5aadbf1d1ca0a637bf94)
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp28
-rw-r--r--src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp28
2 files changed, 0 insertions, 56 deletions
diff --git a/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp b/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
index 0def31e0ce6..3e76591ad7d 100644
--- a/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
+++ b/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
@@ -223,36 +223,8 @@ class npc_voljin_zulaman : public CreatureScript
}
};
-// 45226 - Banging the Gong
-class spell_banging_the_gong : public SpellScriptLoader
-{
- public:
- spell_banging_the_gong() : SpellScriptLoader("spell_banging_the_gong") { }
-
- class spell_banging_the_gong_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_banging_the_gong_SpellScript);
-
- void Activate(SpellEffIndex index)
- {
- PreventHitDefaultEffect(index);
- GetHitGObj()->SendCustomAnim(0);
- }
-
- void Register() override
- {
- OnEffectHitTarget += SpellEffectFn(spell_banging_the_gong_SpellScript::Activate, EFFECT_1, SPELL_EFFECT_ACTIVATE_OBJECT);
- }
- };
-
- SpellScript* GetSpellScript() const override
- {
- return new spell_banging_the_gong_SpellScript();
- }
-};
void AddSC_zulaman()
{
new npc_voljin_zulaman();
- new spell_banging_the_gong();
}
diff --git a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp
index d4f53f9afd3..95e284b1eb5 100644
--- a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp
+++ b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp
@@ -344,33 +344,6 @@ class spell_anhuur_disable_beacon_beams : public SpellScriptLoader
}
};
-class spell_anhuur_activate_beacons : public SpellScriptLoader
-{
- public:
- spell_anhuur_activate_beacons() : SpellScriptLoader("spell_anhuur_activate_beacons") { }
-
- class spell_anhuur_activate_beacons_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_anhuur_activate_beacons_SpellScript);
-
- void Activate(SpellEffIndex index)
- {
- PreventHitDefaultEffect(index);
- GetHitGObj()->RemoveFlag(GO_FLAG_NOT_SELECTABLE);
- }
-
- void Register() override
- {
- OnEffectHitTarget += SpellEffectFn(spell_anhuur_activate_beacons_SpellScript::Activate, EFFECT_0, SPELL_EFFECT_ACTIVATE_OBJECT);
- }
- };
-
- SpellScript* GetSpellScript() const override
- {
- return new spell_anhuur_activate_beacons_SpellScript();
- }
-};
-
class spell_anhuur_divine_reckoning : public SpellScriptLoader
{
public:
@@ -407,6 +380,5 @@ void AddSC_boss_temple_guardian_anhuur()
new boss_temple_guardian_anhuur();
new spell_anhuur_shield_of_light();
new spell_anhuur_disable_beacon_beams();
- new spell_anhuur_activate_beacons();
new spell_anhuur_divine_reckoning();
}