TrinityCore
Loading...
Searching...
No Matches
zone_mulgore.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 "MotionMaster.h"
19#include "ScriptMgr.h"
20#include "ScriptedCreature.h"
21#include "WaypointDefines.h"
22
23/*######
24## npc_eagle_spirit
25######*/
26
32
34{
35 0,
36 {
37 { 0, -2884.155f, -71.08681f, 242.0678f },
38 { 1, -2720.592f, -111.0035f, 242.5955f },
39 { 2, -2683.951f, -382.9010f, 231.1792f },
40 { 3, -2619.148f, -484.9288f, 231.1792f },
41 { 4, -2543.868f, -525.3333f, 231.1792f },
42 { 5, -2465.321f, -502.4896f, 190.7347f },
43 { 6, -2343.872f, -401.8281f, -8.320873f }
44 },
47};
48
50{
51public:
52 npc_eagle_spirit() : CreatureScript("npc_eagle_spirit") { }
53
55 {
56 npc_eagle_spirit_AI(Creature* creature) : ScriptedAI(creature) { }
57
58 void PassengerBoarded(Unit* /*who*/, int8 /*seatId*/, bool apply) override
59 {
60 if (!apply)
61 return;
62
65 }
66
67 void WaypointPathEnded(uint32 /*pointId*/, uint32 /*pathId*/) override
68 {
70 }
71 };
72
73 CreatureAI* GetAI(Creature* creature) const override
74 {
75 return new npc_eagle_spirit_AI(creature);
76 }
77};
78
80{
81 new npc_eagle_spirit();
82}
int8_t int8
Definition Define.h:152
uint32_t uint32
Definition Define.h:154
Creature *const me
Definition CreatureAI.h:63
void MovePath(uint32 pathId, bool repeatable, Optional< Milliseconds > duration={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< std::pair< Milliseconds, Milliseconds > > waitTimeRangeAtPathEnd={}, Optional< float > wanderDistanceAtPathEnds={}, Optional< bool > followPathBackwardsFromEndToStart={}, Optional< bool > exactSplinePath={}, bool generatePath=true, Optional< MovementFadeObject > fadeObject={}, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:89
Definition Unit.h:635
MotionMaster * GetMotionMaster()
Definition Unit.h:1723
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2217
CreatureAI * GetAI(Creature *creature) const override
void PassengerBoarded(Unit *, int8, bool apply) override
== Fields =======================================
void WaypointPathEnded(uint32, uint32) override
EagleSpirit
@ SPELL_SPIRIT_FORM
@ SPELL_EJECT_ALL_PASSENGERS
void AddSC_mulgore()
WaypointPath const EagleSpiritflightPath