TrinityCore
Loading...
Searching...
No Matches
boss_algalon_the_observer.cpp File Reference
#include "ScriptMgr.h"
#include "Containers.h"
#include "DB2Stores.h"
#include "GameObject.h"
#include "GameObjectAI.h"
#include "InstanceScript.h"
#include "Map.h"
#include "MotionMaster.h"
#include "MoveSplineInit.h"
#include "PassiveAI.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "SpellInfo.h"
#include "SpellScript.h"
#include "TemporarySummon.h"
#include "ulduar.h"
+ Include dependency graph for boss_algalon_the_observer.cpp:

Go to the source code of this file.

Classes

class  ActivateLivingConstellation
 
class  CosmicSmashDamageEvent
 
class  SummonUnleashedDarkMatter
 
struct  boss_algalon_the_observer
 
struct  npc_living_constellation
 
struct  npc_black_hole
 
struct  npc_collapsing_star
 
struct  npc_brann_bronzebeard_algalon
 
struct  go_celestial_planetarium_access
 
class  spell_algalon_phase_punch
 
class  spell_algalon_phase_constellation
 
class  spell_algalon_trigger_3_adds
 
class  spell_algalon_collapse
 
class  spell_algalon_big_bang
 
class  spell_algalon_remove_phase
 
class  spell_algalon_cosmic_smash
 
class  spell_algalon_cosmic_smash_damage
 
class  spell_algalon_black_hole_phase_shifts
 

Macros

#define LIVING_CONSTELLATION_COUNT   11
 
#define COLLAPSING_STAR_COUNT   4
 

Enumerations

enum  Texts {
  SAY_BRANN_ALGALON_INTRO_1 = 0 , SAY_BRANN_ALGALON_INTRO_2 = 1 , SAY_BRANN_ALGALON_OUTRO = 2 , SAY_ALGALON_INTRO_1 = 0 ,
  SAY_ALGALON_INTRO_2 = 1 , SAY_ALGALON_INTRO_3 = 2 , SAY_ALGALON_START_TIMER = 3 , SAY_ALGALON_AGGRO = 4 ,
  SAY_ALGALON_COLLAPSING_STAR = 5 , EMOTE_ALGALON_COLLAPSING_STAR = 6 , SAY_ALGALON_BIG_BANG = 7 , EMOTE_ALGALON_BIG_BANG = 8 ,
  SAY_ALGALON_ASCEND = 9 , EMOTE_ALGALON_COSMIC_SMASH = 10 , SAY_ALGALON_PHASE_TWO = 11 , SAY_ALGALON_OUTRO_1 = 12 ,
  SAY_ALGALON_OUTRO_2 = 13 , SAY_ALGALON_OUTRO_3 = 14 , SAY_ALGALON_OUTRO_4 = 15 , SAY_ALGALON_OUTRO_5 = 16 ,
  SAY_ALGALON_DESPAWN_1 = 17 , SAY_ALGALON_DESPAWN_2 = 18 , SAY_ALGALON_DESPAWN_3 = 19 , SAY_ALGALON_KILL = 20 ,
  ENGAGE_MUSIC_ID = 15878
}
 
enum  Spells {
  SPELL_ARRIVAL = 64997 , SPELL_RIDE_THE_LIGHTNING = 64986 , SPELL_SUMMON_AZEROTH = 64994 , SPELL_REORIGINATION = 64996 ,
  SPELL_SUPERMASSIVE_FAIL = 65311 , SPELL_QUANTUM_STRIKE = 64395 , SPELL_PHASE_PUNCH = 64412 , SPELL_BIG_BANG = 64443 ,
  SPELL_ASCEND_TO_THE_HEAVENS = 64487 , SPELL_COSMIC_SMASH = 62301 , SPELL_COSMIC_SMASH_TRIGGERED = 62304 , SPELL_COSMIC_SMASH_VISUAL_STATE = 62300 ,
  SPELL_SELF_STUN = 65256 , SPELL_KILL_CREDIT = 65184 , SPELL_TELEPORT = 62940 , SPELL_TRIGGER_3_ADDS = 62266 ,
  SPELL_ARCANE_BARRAGE = 64599 , SPELL_DESPAWN_BLACK_HOLE = 64391 , SPELL_COLLAPSE = 62018 , SPELL_BLACK_HOLE_SPAWN_VISUAL = 62003 ,
  SPELL_SUMMON_BLACK_HOLE = 62189 , SPELL_BLACK_HOLE_TRIGGER = 62185 , SPELL_CONSTELLATION_PHASE_TRIGGER = 65508 , SPELL_CONSTELLATION_PHASE_EFFECT = 65509 ,
  SPELL_BLACK_HOLE_EXPLOSION = 64122 , SPELL_SUMMON_VOID_ZONE_VISUAL = 64470 , SPELL_VOID_ZONE_VISUAL = 64469 , SPELL_BLACK_HOLE_CREDIT = 65312 ,
  SPELL_BLACK_HOLE_DOT = 62169 , SPELL_WORM_HOLE_TRIGGER = 65251 , SPELL_SUMMON_UNLEASHED_DARK_MATTER = 64450
}
 
enum  Events {
  EVENT_DESPAWN_CONSOLE = 1 , EVENT_BRANN_MOVE_INTRO , EVENT_BRANN_SAY_INTRO_1 , EVENT_SUMMON_ALGALON ,
  EVENT_BRANN_OUTRO_1 , EVENT_BRANN_OUTRO_2 , EVENT_INTRO_1 , EVENT_INTRO_2 ,
  EVENT_SUMMON_AZEROTH , EVENT_INTRO_3 , EVENT_INTRO_FINISH , EVENT_START_COMBAT ,
  EVENT_INTRO_TIMER_DONE , EVENT_QUANTUM_STRIKE , EVENT_PHASE_PUNCH , EVENT_SUMMON_COLLAPSING_STAR ,
  EVENT_BIG_BANG , EVENT_RESUME_UPDATING , EVENT_ASCEND_TO_THE_HEAVENS , EVENT_EVADE ,
  EVENT_COSMIC_SMASH , EVENT_UNLOCK_YELL , EVENT_OUTRO_START , EVENT_OUTRO_1 ,
  EVENT_OUTRO_2 , EVENT_OUTRO_3 , EVENT_OUTRO_4 , EVENT_OUTRO_5 ,
  EVENT_OUTRO_6 , EVENT_OUTRO_7 , EVENT_OUTRO_8 , EVENT_OUTRO_9 ,
  EVENT_OUTRO_10 , EVENT_OUTRO_11 , EVENT_ARCANE_BARRAGE
}
 
enum  Actions {
  ACTION_START_INTRO = 0 , ACTION_ACTIVATE_STAR , ACTION_BIG_BANG , ACTION_ASCEND ,
  ACTION_OUTRO , ACTION_INTRO_2
}
 
enum  EncounterPhases { PHASE_NORMAL = 0 , PHASE_ROLE_PLAY , PHASE_BIG_BANG }
 
enum  AchievmentInfo { EVENT_ID_SUPERMASSIVE_START = 21697 , DATA_HAS_FED_ON_TEARS = 30043005 }
 
enum  AlgalonSplineMovements {
  SPLINE_INITIAL_MOVE = 1 , SPLINE_ALGALON_ROOM = 2 , SPLINE_OUTRO_1 = 3 , SPLINE_OUTRO_2 = 4 ,
  SPLINE_DESPAWN_INTRO_1 = 5
}
 
enum  AlgalonMovePoints { POINT_INITIAL_MOVE = 1 , POINT_ALGALON_ROOM , POINT_DESPAWN , POINT_ALGALON_OUTRO }
 

Functions

void AddSC_boss_algalon_the_observer ()
 

Variables

uint32 const PhasePunchAlphaId [5] = {64435, 64434, 64428, 64421, 64417}
 
Position const ConstellationPos [LIVING_CONSTELLATION_COUNT]
 
Position const CollapsingStarPos [COLLAPSING_STAR_COUNT]
 
Position const BrannIntroSpawnPos = { 1677.363f, -162.3514f, 427.332f, 3.191144f }
 
Position const AlgalonSummonPos = { 1632.531f, -304.8516f, 450.1123f, 1.530165f }
 
Position const AlgalonLandPos = { 1632.668f, -302.7656f, 417.3211f, 1.530165f }
 
Position const AlgalonOutroPos = {1633.64f, -317.78f, 417.3211f, 0.0f}
 
Position const BrannOutroPos = { 1631.989f, -221.5439f, 418.4091f, 4.714909f }
 

Macro Definition Documentation

◆ COLLAPSING_STAR_COUNT

#define COLLAPSING_STAR_COUNT   4

Definition at line 217 of file boss_algalon_the_observer.cpp.

◆ LIVING_CONSTELLATION_COUNT

#define LIVING_CONSTELLATION_COUNT   11

Definition at line 201 of file boss_algalon_the_observer.cpp.

Enumeration Type Documentation

◆ AchievmentInfo

Enumerator
EVENT_ID_SUPERMASSIVE_START 
DATA_HAS_FED_ON_TEARS 

Definition at line 178 of file boss_algalon_the_observer.cpp.

◆ Actions

enum Actions
Enumerator
ACTION_START_INTRO 
ACTION_ACTIVATE_STAR 
ACTION_BIG_BANG 
ACTION_ASCEND 
ACTION_OUTRO 
ACTION_INTRO_2 

Definition at line 161 of file boss_algalon_the_observer.cpp.

◆ AlgalonMovePoints

Enumerator
POINT_INITIAL_MOVE 
POINT_ALGALON_ROOM 
POINT_DESPAWN 
POINT_ALGALON_OUTRO 

Definition at line 193 of file boss_algalon_the_observer.cpp.

◆ AlgalonSplineMovements

Enumerator
SPLINE_INITIAL_MOVE 
SPLINE_ALGALON_ROOM 
SPLINE_OUTRO_1 
SPLINE_OUTRO_2 
SPLINE_DESPAWN_INTRO_1 

Definition at line 184 of file boss_algalon_the_observer.cpp.

◆ EncounterPhases

Enumerator
PHASE_NORMAL 
PHASE_ROLE_PLAY 
PHASE_BIG_BANG 

Definition at line 171 of file boss_algalon_the_observer.cpp.

◆ Events

enum Events
Enumerator
EVENT_DESPAWN_CONSOLE 
EVENT_BRANN_MOVE_INTRO 
EVENT_BRANN_SAY_INTRO_1 
EVENT_SUMMON_ALGALON 
EVENT_BRANN_OUTRO_1 
EVENT_BRANN_OUTRO_2 
EVENT_INTRO_1 
EVENT_INTRO_2 
EVENT_SUMMON_AZEROTH 
EVENT_INTRO_3 
EVENT_INTRO_FINISH 
EVENT_START_COMBAT 
EVENT_INTRO_TIMER_DONE 
EVENT_QUANTUM_STRIKE 
EVENT_PHASE_PUNCH 
EVENT_SUMMON_COLLAPSING_STAR 
EVENT_BIG_BANG 
EVENT_RESUME_UPDATING 
EVENT_ASCEND_TO_THE_HEAVENS 
EVENT_EVADE 
EVENT_COSMIC_SMASH 
EVENT_UNLOCK_YELL 
EVENT_OUTRO_START 
EVENT_OUTRO_1 
EVENT_OUTRO_2 
EVENT_OUTRO_3 
EVENT_OUTRO_4 
EVENT_OUTRO_5 
EVENT_OUTRO_6 
EVENT_OUTRO_7 
EVENT_OUTRO_8 
EVENT_OUTRO_9 
EVENT_OUTRO_10 
EVENT_OUTRO_11 
EVENT_ARCANE_BARRAGE 

Definition at line 115 of file boss_algalon_the_observer.cpp.

◆ Spells

enum Spells
Enumerator
SPELL_ARRIVAL 
SPELL_RIDE_THE_LIGHTNING 
SPELL_SUMMON_AZEROTH 
SPELL_REORIGINATION 
SPELL_SUPERMASSIVE_FAIL 
SPELL_QUANTUM_STRIKE 
SPELL_PHASE_PUNCH 
SPELL_BIG_BANG 
SPELL_ASCEND_TO_THE_HEAVENS 
SPELL_COSMIC_SMASH 
SPELL_COSMIC_SMASH_TRIGGERED 
SPELL_COSMIC_SMASH_VISUAL_STATE 
SPELL_SELF_STUN 
SPELL_KILL_CREDIT 
SPELL_TELEPORT 
SPELL_TRIGGER_3_ADDS 
SPELL_ARCANE_BARRAGE 
SPELL_DESPAWN_BLACK_HOLE 
SPELL_COLLAPSE 
SPELL_BLACK_HOLE_SPAWN_VISUAL 
SPELL_SUMMON_BLACK_HOLE 
SPELL_BLACK_HOLE_TRIGGER 
SPELL_CONSTELLATION_PHASE_TRIGGER 
SPELL_CONSTELLATION_PHASE_EFFECT 
SPELL_BLACK_HOLE_EXPLOSION 
SPELL_SUMMON_VOID_ZONE_VISUAL 
SPELL_VOID_ZONE_VISUAL 
SPELL_BLACK_HOLE_CREDIT 
SPELL_BLACK_HOLE_DOT 
SPELL_WORM_HOLE_TRIGGER 
SPELL_SUMMON_UNLEASHED_DARK_MATTER 

Definition at line 67 of file boss_algalon_the_observer.cpp.

◆ Texts

enum Texts
Enumerator
SAY_BRANN_ALGALON_INTRO_1 
SAY_BRANN_ALGALON_INTRO_2 
SAY_BRANN_ALGALON_OUTRO 
SAY_ALGALON_INTRO_1 
SAY_ALGALON_INTRO_2 
SAY_ALGALON_INTRO_3 
SAY_ALGALON_START_TIMER 
SAY_ALGALON_AGGRO 
SAY_ALGALON_COLLAPSING_STAR 
EMOTE_ALGALON_COLLAPSING_STAR 
SAY_ALGALON_BIG_BANG 
EMOTE_ALGALON_BIG_BANG 
SAY_ALGALON_ASCEND 
EMOTE_ALGALON_COSMIC_SMASH 
SAY_ALGALON_PHASE_TWO 
SAY_ALGALON_OUTRO_1 
SAY_ALGALON_OUTRO_2 
SAY_ALGALON_OUTRO_3 
SAY_ALGALON_OUTRO_4 
SAY_ALGALON_OUTRO_5 
SAY_ALGALON_DESPAWN_1 
SAY_ALGALON_DESPAWN_2 
SAY_ALGALON_DESPAWN_3 
SAY_ALGALON_KILL 
ENGAGE_MUSIC_ID 

Definition at line 35 of file boss_algalon_the_observer.cpp.

Function Documentation

◆ AddSC_boss_algalon_the_observer()

void AddSC_boss_algalon_the_observer ( )

Definition at line 1210 of file boss_algalon_the_observer.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ AlgalonLandPos

Position const AlgalonLandPos = { 1632.668f, -302.7656f, 417.3211f, 1.530165f }

Definition at line 228 of file boss_algalon_the_observer.cpp.

◆ AlgalonOutroPos

Position const AlgalonOutroPos = {1633.64f, -317.78f, 417.3211f, 0.0f}

Definition at line 229 of file boss_algalon_the_observer.cpp.

◆ AlgalonSummonPos

Position const AlgalonSummonPos = { 1632.531f, -304.8516f, 450.1123f, 1.530165f }

Definition at line 227 of file boss_algalon_the_observer.cpp.

◆ BrannIntroSpawnPos

Position const BrannIntroSpawnPos = { 1677.363f, -162.3514f, 427.332f, 3.191144f }

Definition at line 226 of file boss_algalon_the_observer.cpp.

◆ BrannOutroPos

Position const BrannOutroPos = { 1631.989f, -221.5439f, 418.4091f, 4.714909f }

Definition at line 230 of file boss_algalon_the_observer.cpp.

◆ CollapsingStarPos

Position const CollapsingStarPos[COLLAPSING_STAR_COUNT]
Initial value:
=
{
{1649.438f, -319.8127f, 418.3941f, 1.082104f},
{1647.005f, -288.6790f, 417.3955f, 3.490659f},
{1622.451f, -321.1563f, 417.6188f, 4.677482f},
{1615.060f, -291.6816f, 417.7796f, 3.490659f}
}

Definition at line 218 of file boss_algalon_the_observer.cpp.

◆ ConstellationPos

Position const ConstellationPos[LIVING_CONSTELLATION_COUNT]
Initial value:
=
{
{1625.208f, -267.2771f, 446.4296f, 5.044002f},
{1658.279f, -262.5490f, 441.9073f, 4.188790f},
{1678.677f, -276.3280f, 427.7531f, 3.979351f},
{1593.389f, -299.4325f, 432.4636f, 6.073746f},
{1685.613f, -300.1219f, 443.2366f, 3.385939f},
{1591.706f, -263.8201f, 441.4153f, 5.253441f},
{1668.317f, -324.7676f, 457.9394f, 3.211406f},
{1592.242f, -325.5323f, 446.9508f, 0.226893f},
{1635.821f, -363.3442f, 424.3459f, 1.466077f},
{1672.188f, -357.2484f, 436.7337f, 2.338741f},
{1615.800f, -348.0065f, 442.9586f, 1.134464f}
}

Definition at line 202 of file boss_algalon_the_observer.cpp.

◆ PhasePunchAlphaId

uint32 const PhasePunchAlphaId[5] = {64435, 64434, 64428, 64421, 64417}

Definition at line 113 of file boss_algalon_the_observer.cpp.