TrinityCore
spell_gen_battleground_mercenary_shapeshift Class Reference
+ Inheritance diagram for spell_gen_battleground_mercenary_shapeshift:

Private Types

using OtherFactionRacePriorityList = std::array< Races, 3 >
 

Private Member Functions

bool Validate (SpellInfo const *) override
 
void HandleApply (AuraEffect const *, AuraEffectHandleModes mode)
 
void HandleRemove (AuraEffect const *, AuraEffectHandleModes)
 
void UpdateRacials (Races oldRace, Races newRace)
 
void Register () override
 

Static Private Member Functions

static Races GetReplacementRace (Races nativeRace, Classes playerClass)
 
static uint32 GetDisplayIdForRace (Races race, Gender gender)
 

Static Private Attributes

static std::unordered_map< Races, OtherFactionRacePriorityList > const RaceInfo
 
static std::unordered_map< Races, std::array< uint32, 2 > > const RaceDisplayIds
 
static std::vector< uint32RacialSkills
 

Additional Inherited Members

- Public Member Functions inherited from AuraScript
 AuraScript ()
 
 ~AuraScript ()
 
bool _Validate (SpellInfo const *entry) override
 
bool _Load (Aura *aura)
 
void _PrepareScriptCall (AuraScriptHookType hookType, AuraApplication const *aurApp=nullptr)
 
void _FinishScriptCall ()
 
bool _IsDefaultActionPrevented () const
 
void PreventDefaultAction ()
 
SpellInfo const * GetSpellInfo () const
 
SpellEffectInfo const & GetEffectInfo (SpellEffIndex effIndex) const
 
uint32 GetId () const
 
ObjectGuid GetCasterGUID () const
 
UnitGetCaster () const
 
GameObjectGetGObjCaster () const
 
WorldObjectGetOwner () const
 
UnitGetUnitOwner () const
 
DynamicObjectGetDynobjOwner () const
 
void Remove (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
AuraGetAura () const
 
AuraObjectType GetType () const
 
int32 GetDuration () const
 
void SetDuration (int32 duration, bool withMods=false)
 
void RefreshDuration ()
 
time_t GetApplyTime () const
 
int32 GetMaxDuration () const
 
void SetMaxDuration (int32 duration)
 
int32 CalcMaxDuration () const
 
bool IsExpired () const
 
bool IsPermanent () const
 
uint8 GetCharges () const
 
void SetCharges (uint8 charges)
 
uint8 CalcMaxCharges () const
 
bool ModCharges (int8 num, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
bool DropCharge (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
uint8 GetStackAmount () const
 
void SetStackAmount (uint8 num)
 
bool ModStackAmount (int32 num, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
bool IsPassive () const
 
bool IsDeathPersistent () const
 
bool HasEffect (uint8 effIndex) const
 
AuraEffectGetEffect (uint8 effIndex) const
 
bool HasEffectType (AuraType type) const
 
UnitGetTarget () const
 
AuraApplication const * GetTargetApplication () const
 
Difficulty GetCastDifficulty () const
 
- Public Member Functions inherited from SpellScriptBase
 SpellScriptBase ()
 
virtual ~SpellScriptBase ()
 
 SpellScriptBase (SpellScriptBase const &right)=delete
 
 SpellScriptBase (SpellScriptBase &&right)=delete
 
SpellScriptBaseoperator= (SpellScriptBase const &right)=delete
 
SpellScriptBaseoperator= (SpellScriptBase &&right)=delete
 
void _Register ()
 
void _Unload ()
 
void _Init (std::string const &scriptname, uint32 spellId)
 
std::string_view GetScriptName () const
 
virtual void Register ()=0
 
virtual bool Validate (SpellInfo const *spellInfo)
 
virtual bool Load ()
 
virtual void Unload ()
 
- Static Public Member Functions inherited from SpellScriptBase
static bool ValidateSpellInfo (std::initializer_list< uint32 > spellIds)
 
template<class T >
static bool ValidateSpellInfo (T const &spellIds)
 
static bool ValidateSpellEffect (std::initializer_list< std::pair< uint32, SpellEffIndex > > effects)
 
template<class T >
static bool ValidateSpellEffect (T const &spellEffects)
 
- Public Attributes inherited from AuraScript
HookList< CheckAreaTargetHandlerDoCheckAreaTarget
 
HookList< AuraDispelHandlerOnDispel
 
HookList< AuraDispelHandlerAfterDispel
 
HookList< EffectApplyHandlerOnEffectApply
 
HookList< EffectApplyHandlerAfterEffectApply
 
HookList< EffectApplyHandlerOnEffectRemove
 
HookList< EffectApplyHandlerAfterEffectRemove
 
HookList< EffectPeriodicHandlerOnEffectPeriodic
 
HookList< EffectUpdatePeriodicHandlerOnEffectUpdatePeriodic
 
HookList< EffectCalcAmountHandlerDoEffectCalcAmount
 
HookList< EffectCalcPeriodicHandlerDoEffectCalcPeriodic
 
HookList< EffectCalcSpellModHandlerDoEffectCalcSpellMod
 
HookList< EffectCalcCritChanceHandlerDoEffectCalcCritChance
 
HookList< EffectCalcDamageAndHealingHandlerDoEffectCalcDamageAndHealing
 
HookList< EffectAbsorbHandlerOnEffectAbsorb
 
HookList< EffectAbsorbHandlerAfterEffectAbsorb
 
HookList< EffectAbsorbHealHandlerOnEffectAbsorbHeal
 
HookList< EffectAbsorbHealHandlerAfterEffectAbsorbHeal
 
HookList< EffectAbsorbHandlerOnEffectManaShield
 
HookList< EffectAbsorbHandlerAfterEffectManaShield
 
HookList< EffectAbsorbHandlerOnEffectSplit
 
HookList< CheckProcHandlerDoCheckProc
 
HookList< CheckEffectProcHandlerDoCheckEffectProc
 
HookList< AuraProcHandlerDoPrepareProc
 
HookList< AuraProcHandlerOnProc
 
HookList< AuraProcHandlerAfterProc
 
HookList< EffectProcHandlerOnEffectProc
 
HookList< EffectProcHandlerAfterEffectProc
 
HookList< EnterLeaveCombatHandlerOnEnterLeaveCombat
 
- Protected Types inherited from SpellScriptBase
template<typename ScriptFunc >
using GetScriptClass_t = typename GetScriptClass< ScriptFunc >::type
 
virtual bool _Validate (SpellInfo const *entry)
 
- Protected Attributes inherited from SpellScriptBase
uint8 m_currentScriptState
 
std::string_view m_scriptName
 
uint32 m_scriptSpellId
 

Detailed Description

Definition at line 409 of file spell_generic.cpp.

Member Typedef Documentation

◆ OtherFactionRacePriorityList

Member Function Documentation

◆ GetDisplayIdForRace()

static uint32 spell_gen_battleground_mercenary_shapeshift::GetDisplayIdForRace ( Races  race,
Gender  gender 
)
inlinestaticprivate

Definition at line 483 of file spell_generic.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetReplacementRace()

static Races spell_gen_battleground_mercenary_shapeshift::GetReplacementRace ( Races  nativeRace,
Classes  playerClass 
)
inlinestaticprivate

Definition at line 473 of file spell_generic.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleApply()

void spell_gen_battleground_mercenary_shapeshift::HandleApply ( AuraEffect const *  ,
AuraEffectHandleModes  mode 
)
inlineprivate

Definition at line 521 of file spell_generic.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleRemove()

void spell_gen_battleground_mercenary_shapeshift::HandleRemove ( AuraEffect const *  ,
AuraEffectHandleModes   
)
inlineprivate

Definition at line 535 of file spell_generic.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Register()

void spell_gen_battleground_mercenary_shapeshift::Register ( )
inlineoverrideprivatevirtual

Implements SpellScriptBase.

Definition at line 563 of file spell_generic.cpp.

+ Here is the call graph for this function:

◆ UpdateRacials()

void spell_gen_battleground_mercenary_shapeshift::UpdateRacials ( Races  oldRace,
Races  newRace 
)
inlineprivate

Definition at line 545 of file spell_generic.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Validate()

bool spell_gen_battleground_mercenary_shapeshift::Validate ( SpellInfo const *  )
inlineoverrideprivatevirtual

Reimplemented from SpellScriptBase.

Definition at line 491 of file spell_generic.cpp.

Member Data Documentation

◆ RaceDisplayIds

std::unordered_map<Races, std::array<uint32, 2> > const spell_gen_battleground_mercenary_shapeshift::RaceDisplayIds
inlinestaticprivate
Initial value:
=
{
{ RACE_HUMAN, { 55239, 55238 } },
{ RACE_ORC, { 55257, 55256 } },
{ RACE_DWARF, { 55241, 55240 } },
{ RACE_NIGHTELF, { 55243, 55242 } },
{ RACE_UNDEAD_PLAYER, { 55259, 55258 } },
{ RACE_TAUREN, { 55261, 55260 } },
{ RACE_GNOME, { 55245, 55244 } },
{ RACE_TROLL, { 55263, 55262 } },
{ RACE_GOBLIN, { 55267, 57244 } },
{ RACE_BLOODELF, { 55265, 55264 } },
{ RACE_DRAENEI, { 55247, 55246 } },
{ RACE_WORGEN, { 55255, 55254 } },
{ RACE_PANDAREN_NEUTRAL, { 55253, 55252 } },
{ RACE_PANDAREN_ALLIANCE, { 55249, 55248 } },
{ RACE_PANDAREN_HORDE, { 55251, 55250 } },
{ RACE_NIGHTBORNE, { 82375, 82376 } },
{ RACE_HIGHMOUNTAIN_TAUREN, { 82377, 82378 } },
{ RACE_VOID_ELF, { 82371, 82372 } },
{ RACE_LIGHTFORGED_DRAENEI, { 82373, 82374 } },
{ RACE_ZANDALARI_TROLL, { 88417, 88416 } },
{ RACE_KUL_TIRAN, { 88414, 88413 } },
{ RACE_DARK_IRON_DWARF, { 88409, 88408 } },
{ RACE_VULPERA, { 94999, 95001 } },
{ RACE_MAGHAR_ORC, { 88420, 88410 } },
{ RACE_MECHAGNOME, { 94998, 95000 } },
}
@ RACE_DARK_IRON_DWARF
Definition: RaceMask.h:61
@ RACE_TROLL
Definition: RaceMask.h:35
@ RACE_UNDEAD_PLAYER
Definition: RaceMask.h:32
@ RACE_PANDAREN_NEUTRAL
Definition: RaceMask.h:51
@ RACE_ORC
Definition: RaceMask.h:29
@ RACE_LIGHTFORGED_DRAENEI
Definition: RaceMask.h:57
@ RACE_DRAENEI
Definition: RaceMask.h:38
@ RACE_NIGHTBORNE
Definition: RaceMask.h:54
@ RACE_HIGHMOUNTAIN_TAUREN
Definition: RaceMask.h:55
@ RACE_ZANDALARI_TROLL
Definition: RaceMask.h:58
@ RACE_VOID_ELF
Definition: RaceMask.h:56
@ RACE_NIGHTELF
Definition: RaceMask.h:31
@ RACE_BLOODELF
Definition: RaceMask.h:37
@ RACE_DWARF
Definition: RaceMask.h:30
@ RACE_GNOME
Definition: RaceMask.h:34
@ RACE_GOBLIN
Definition: RaceMask.h:36
@ RACE_KUL_TIRAN
Definition: RaceMask.h:59
@ RACE_HUMAN
Definition: RaceMask.h:28
@ RACE_WORGEN
Definition: RaceMask.h:49
@ RACE_PANDAREN_ALLIANCE
Definition: RaceMask.h:52
@ RACE_VULPERA
Definition: RaceMask.h:62
@ RACE_MECHAGNOME
Definition: RaceMask.h:64
@ RACE_MAGHAR_ORC
Definition: RaceMask.h:63
@ RACE_PANDAREN_HORDE
Definition: RaceMask.h:53
@ RACE_TAUREN
Definition: RaceMask.h:33

Definition at line 442 of file spell_generic.cpp.

◆ RaceInfo

std::unordered_map<Races, OtherFactionRacePriorityList> const spell_gen_battleground_mercenary_shapeshift::RaceInfo
inlinestaticprivate

◆ RacialSkills

std::vector<uint32> spell_gen_battleground_mercenary_shapeshift::RacialSkills
inlinestaticprivate

Definition at line 471 of file spell_generic.cpp.


The documentation for this class was generated from the following file: