TrinityCore
Loading...
Searching...
No Matches
eastern_kingdoms.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "DB2Stores.h"
19#include "ScriptMgr.h"
20#include "SpellScript.h"
21#include "Unit.h"
22
30
31// 34448 - Translocate
49
50// 34452 - Translocate
68
69// 35376 - Translocate
87
88// 35727 - Translocate
106
107/*######
108## Quest 11532: Distraction at the Dead Scar / 11533: The Air Strikes Must Continue
109######*/
110
115
116// 45071 - Quest - Sunwell Daily - Dead Scar Bombing Run
134
139
140// 45188 - Dawnblade Attack
158
159/*######
160## Quest 2203: Badlands Reagent Run II
161######*/
162
167
168// 9712 - Thaumaturgy Channel
170{
171 bool Validate(SpellInfo const* /*spellInfo*/) override
172 {
174 }
175
176 void HandleEffectPeriodic(AuraEffect const* /*aurEff*/)
177 {
179 if (Unit* caster = GetCaster())
180 caster->CastSpell(caster, SPELL_THAUMATURGY_CHANNEL, false);
181 }
182
187};
188
DB2Storage< SoundKitEntry > sSoundKitStore("SoundKit.db2", &SoundKitLoadInfo::Instance)
#define RegisterSpellScript(spell_script)
Definition ScriptMgr.h:1383
SpellEffIndex
@ EFFECT_0
@ EFFECT_2
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
#define SpellEffectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
void PreventDefaultAction()
HookList< EffectPeriodicHandler > OnEffectPeriodic
Unit * GetCaster() const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Unit * GetCaster() const
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
Definition Unit.h:647
void PlayDirectSound(uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const
Definition Object.cpp:2941
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2222
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
DeadScarBombingRun
@ SOUND_ID_BOMBING_RUN
BadlandsReagentRun
@ SPELL_THAUMATURGY_CHANNEL
DawnbladeAttack
@ SPELL_DAWNBLADE_ATTACK
EasternKingdomsTranslocation
@ SPELL_TRANSLOCATION_DUSKWITHER_SPIRE_UP
@ SPELL_TRANSLOCATION_DUSKWITHER_SPIRE_DOWN
@ SPELL_TRANSLOCATION_SILVERMOON_TO_UNDERCITY
@ SPELL_TRANSLOCATION_UNDERCITY_TO_SILVERMOON
void AddSC_eastern_kingdoms()