aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
authoroffl <11556157+offl@users.noreply.github.com>2021-12-01 02:52:31 +0200
committerGitHub <noreply@github.com>2021-12-01 02:52:31 +0200
commit251304b19c2fc42ee330b9a533b54f7b80df5d4a (patch)
tree4f9e950a03780c51509d35608fc8cb93bc637bd8 /src/server/scripts/EasternKingdoms
parent43315e0e19fe1609b336f6a9aae486e302317c79 (diff)
Scripts/Spells: Generic spell script for quest portals (#27305)
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp
index 52ce80c0994..9b33e002de8 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp
@@ -1671,34 +1671,8 @@ public:
};
-// 58418 - Portal to Orgrimmar
-// 58420 - Portal to Stormwind
-class spell_teleport_leaders_blessing : public SpellScript
-{
- PrepareSpellScript(spell_teleport_leaders_blessing);
-
- void HandleScriptEffect(SpellEffIndex /* effIndex */)
- {
- Player* target = GetHitPlayer();
- if (!target)
- return;
-
- uint32 spellID = GetEffectInfo().CalcValue();
- uint32 questID = GetEffectInfo(EFFECT_1).CalcValue();
-
- if (target->GetQuestStatus(questID) == QUEST_STATUS_COMPLETE)
- target->CastSpell(target, spellID, true);
- }
-
- void Register() override
- {
- OnEffectHitTarget += SpellEffectFn(spell_teleport_leaders_blessing::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
- }
-};
-
void AddSC_the_scarlet_enclave_c5()
{
new npc_highlord_darion_mograine();
new npc_the_lich_king_tirion_dawn();
- RegisterSpellScript(spell_teleport_leaders_blessing);
}