TrinityCore
operation_gnomeregan.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 "ScriptMgr.h"
19#include "SpellScript.h"
20#include "Unit.h"
21
23{
29};
30
31/* 73725 - [DND] Test Cheer
32 73835 - [DND] Test Salute
33 73836 - [DND] Test Roar
34 73837 - [DND] Test Dance
35 73886 - [DND] Test Stop Dance */
37{
38 void HandlePeriodic(AuraEffect const* /*aurEff*/)
39 {
40 Unit* target = GetTarget();
41
42 switch (GetId())
43 {
46 break;
47 case SPELL_TEST_ROAR:
49 break;
52 break;
55 break;
58 break;
59 default:
60 return;
61 }
62 Remove();
63 }
64
65 void Register() override
66 {
68 }
69};
70
72{
74}
#define RegisterSpellScript(spell_script)
Definition: ScriptMgr.h:1369
@ EFFECT_0
Definition: SharedDefines.h:30
@ EMOTE_ONESHOT_CHEER
@ EMOTE_ONESHOT_ROAR
@ EMOTE_ONESHOT_SALUTE
@ EMOTE_STATE_DANCE
@ EMOTE_STATE_NONE
@ SPELL_AURA_PERIODIC_DUMMY
#define AuraEffectPeriodicFn(F, I, N)
Definition: SpellScript.h:2046
HookList< EffectPeriodicHandler > OnEffectPeriodic
Definition: SpellScript.h:2045
Unit * GetTarget() const
void Remove(AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
uint32 GetId() const
Definition: Unit.h:627
void SetEmoteState(Emote emote)
Definition: Unit.h:852
void HandleEmoteCommand(Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0)
Definition: Unit.cpp:1598
@ SPELL_TEST_STOP_DANCE
@ SPELL_TEST_ROAR
@ SPELL_TEST_SALUTE
@ SPELL_TEST_CHEER
@ SPELL_TEST_DANCE
void AddSC_event_operation_gnomeregan()