TrinityCore
Loading...
Searching...
No Matches
boss_general_bjarngrim.cpp File Reference
#include "ScriptMgr.h"
#include "halls_of_lightning.h"
#include "SpellScript.h"
#include "CreatureGroups.h"
#include "InstanceScript.h"
#include "Map.h"
#include "MovementDefines.h"
#include "ObjectAccessor.h"
#include "ScriptedCreature.h"
#include "SpellAuras.h"
#include "SpellHistory.h"
#include "SpellMgr.h"
+ Include dependency graph for boss_general_bjarngrim.cpp:

Go to the source code of this file.

Classes

struct  StanceTextInfo
 
struct  StanceInfo
 
struct  boss_general_bjarngrim
 
struct  npc_bjarngrim_stormforged_lieutenant
 
class  spell_bjarngrim_stance_dummy
 
class  spell_bjarngrim_charge_up
 
class  spell_bjarngrim_arc_weld
 

Enumerations

enum  Spells {
  SPELL_CHARGE_UP = 52098 , SPELL_TEMPOARY_ELECTRICAL_CHARGE = 52092 , SPELL_STANCE_COOLDOWN = 41102 , SPELL_DEFENSIVE_STANCE = 53790 ,
  SPELL_DEFENSIVE_AURA = 41105 , SPELL_KNOCK_AWAY = 52029 , SPELL_SPELL_REFLECTION = 36096 , SPELL_BERSERKER_STANCE = 53791 ,
  SPELL_BERSERKER_AURA = 41107 , SPELL_WHIRLWIND = 52027 , SPELL_INTERCEPT = 58769 , SPELL_CLEAVE = 15284 ,
  SPELL_BATTLE_STANCE = 53792 , SPELL_BATTLE_AURA = 41106 , SPELL_MORTAL_STRIKE = 16856 , SPELL_SLAM = 52026 ,
  SPELL_ARC_WELD = 59085 , SPELL_ARC_WELD_DAMAGE = 59097 , SPELL_RENEW_STEEL = 52774 , SPELL_CHARGE_UP_DUMMY = 56458
}
 
enum  Events {
  EVENT_CHARGE_UP = 1 , EVENT_CHECK_STANCE_COOLDOWN , EVENT_KNOCK_AWAY , EVENT_SPELL_REFLECTION ,
  EVENT_WHIRLWIND , EVENT_INTERCEPT , EVENT_CLEAVE , EVENT_MORTAL_STRIKE ,
  EVENT_SLAM , EVENT_ARC_WELD = 1 , EVENT_CHECK_BJARNGRIMS_HEALTH
}
 
enum  EventGroups { EVENT_GROUP_DEFENSIVE_STANCE = 1 , EVENT_GROUP_BERSERKER_STANCE , EVENT_GROUP_BATTLE_STANCE }
 
enum  Actions { ACTION_SWITCH_STANCE = 0 }
 
enum  Phases { PHASE_OUT_OF_COMBAT = 1 }
 
enum  Texts {
  SAY_AGGRO = 0 , SAY_ANNOUNCE_DEFENSIVE_STANCE = 1 , SAY_DEFENSIVE_STANCE = 2 , SAY_ANNOUNCE_BERSERKER_STANCE = 3 ,
  SAY_BERSERKER_STANCE = 4 , SAY_ANNOUNCE_BATTLE_STANCE = 5 , SAY_BATTLE_STANCE = 6 , SAY_SLAY = 7 ,
  SAY_DEATH = 8
}
 
enum  VirtualItemIds { ITEM_ID_AXE = 43625 , ITEM_ID_SHIELD = 39384 , ITEM_ID_GREATAXE = 43623 }
 
enum  Stances { STANCE_DEFENSIVE = 0 , STANCE_BERSERKER = 1 , STANCE_BATTLE = 2 , MAX_STANCE }
 

Functions

void AddSC_boss_general_bjarngrim ()
 

Variables

static std::array< uint8, 2 > const ChargeUpWaypointIds = { 7, 15 }
 
static std::array< uint8, 2 > const ClearTempoaryChargeWaypointIds = { 5, 13 }
 
static constexpr uint32 SPAWN_GROUP_ID_STORMFORGED_LIEUTENANTS = 325
 
static std::array< StanceInfo, MAX_STANCE > const StanceData
 

Enumeration Type Documentation

◆ Actions

enum Actions
Enumerator
ACTION_SWITCH_STANCE 

Definition at line 85 of file boss_general_bjarngrim.cpp.

◆ EventGroups

Enumerator
EVENT_GROUP_DEFENSIVE_STANCE 
EVENT_GROUP_BERSERKER_STANCE 
EVENT_GROUP_BATTLE_STANCE 

Definition at line 78 of file boss_general_bjarngrim.cpp.

◆ Events

enum Events
Enumerator
EVENT_CHARGE_UP 
EVENT_CHECK_STANCE_COOLDOWN 
EVENT_KNOCK_AWAY 
EVENT_SPELL_REFLECTION 
EVENT_WHIRLWIND 
EVENT_INTERCEPT 
EVENT_CLEAVE 
EVENT_MORTAL_STRIKE 
EVENT_SLAM 
EVENT_ARC_WELD 
EVENT_CHECK_BJARNGRIMS_HEALTH 

Definition at line 60 of file boss_general_bjarngrim.cpp.

◆ Phases

enum Phases
Enumerator
PHASE_OUT_OF_COMBAT 

Definition at line 90 of file boss_general_bjarngrim.cpp.

◆ Spells

enum Spells
Enumerator
SPELL_CHARGE_UP 
SPELL_TEMPOARY_ELECTRICAL_CHARGE 
SPELL_STANCE_COOLDOWN 
SPELL_DEFENSIVE_STANCE 
SPELL_DEFENSIVE_AURA 
SPELL_KNOCK_AWAY 
SPELL_SPELL_REFLECTION 
SPELL_BERSERKER_STANCE 
SPELL_BERSERKER_AURA 
SPELL_WHIRLWIND 
SPELL_INTERCEPT 
SPELL_CLEAVE 
SPELL_BATTLE_STANCE 
SPELL_BATTLE_AURA 
SPELL_MORTAL_STRIKE 
SPELL_SLAM 
SPELL_ARC_WELD 
SPELL_ARC_WELD_DAMAGE 
SPELL_RENEW_STEEL 
SPELL_CHARGE_UP_DUMMY 

Definition at line 31 of file boss_general_bjarngrim.cpp.

◆ Stances

enum Stances
Enumerator
STANCE_DEFENSIVE 
STANCE_BERSERKER 
STANCE_BATTLE 
MAX_STANCE 

Definition at line 116 of file boss_general_bjarngrim.cpp.

◆ Texts

enum Texts
Enumerator
SAY_AGGRO 
SAY_ANNOUNCE_DEFENSIVE_STANCE 
SAY_DEFENSIVE_STANCE 
SAY_ANNOUNCE_BERSERKER_STANCE 
SAY_BERSERKER_STANCE 
SAY_ANNOUNCE_BATTLE_STANCE 
SAY_BATTLE_STANCE 
SAY_SLAY 
SAY_DEATH 

Definition at line 95 of file boss_general_bjarngrim.cpp.

◆ VirtualItemIds

Enumerator
ITEM_ID_AXE 
ITEM_ID_SHIELD 
ITEM_ID_GREATAXE 

Definition at line 109 of file boss_general_bjarngrim.cpp.

Function Documentation

◆ AddSC_boss_general_bjarngrim()

void AddSC_boss_general_bjarngrim ( )

Definition at line 490 of file boss_general_bjarngrim.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ ChargeUpWaypointIds

std::array<uint8, 2> const ChargeUpWaypointIds = { 7, 15 }
static

Definition at line 127 of file boss_general_bjarngrim.cpp.

◆ ClearTempoaryChargeWaypointIds

std::array<uint8, 2> const ClearTempoaryChargeWaypointIds = { 5, 13 }
static

Definition at line 129 of file boss_general_bjarngrim.cpp.

◆ SPAWN_GROUP_ID_STORMFORGED_LIEUTENANTS

constexpr uint32 SPAWN_GROUP_ID_STORMFORGED_LIEUTENANTS = 325
staticconstexpr

Definition at line 132 of file boss_general_bjarngrim.cpp.

◆ StanceData