Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript Class Reference
Inheritance diagram for spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript:
Collaboration diagram for spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript:

Private Member Functions

uint32 GetPennatSpellId (Player *player, Unit *mount)
void HandleApplyEffect (AuraEffect const *, AuraEffectHandleModes)
void HandleRemoveEffect (AuraEffect const *, AuraEffectHandleModes)
bool Load () OVERRIDE
 PrepareAuraScript (spell_gen_on_tournament_mount_AuraScript)
void Register () OVERRIDE

Private Attributes

uint32 _pennantSpellId

Additional Inherited Members

Public Member Functions inherited from AuraScript
void _FinishScriptCall ()
bool _IsDefaultActionPrevented ()
bool _Load (Aura *aura)
void _PrepareScriptCall (AuraScriptHookType hookType, AuraApplication const *aurApp=NULL)
bool _Validate (SpellInfo const *entry)
 AuraScript ()
uint8 CalcMaxCharges () const
int32 CalcMaxDuration () const
bool DropCharge (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
time_t GetApplyTime () const
Aura * GetAura () const
Unit * GetCaster () const
uint64 GetCasterGUID () const
uint8 GetCharges () const
int32 GetDuration () const
DynamicObject * GetDynobjOwner () const
AuraEffect * GetEffect (uint8 effIndex) const
uint32 GetId () const
int32 GetMaxDuration () const
WorldObject * GetOwner () const
SpellInfo const * GetSpellInfo () const
uint8 GetStackAmount () const
Unit * GetTarget () const
AuraApplication const * GetTargetApplication () const
AuraObjectType GetType () const
Unit * GetUnitOwner () const
bool HasEffect (uint8 effIndex) const
bool HasEffectType (AuraType type) const
bool IsDeathPersistent () const
bool IsExpired () const
bool IsPassive () const
bool IsPermanent () const
bool ModCharges (int8 num, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
bool ModStackAmount (int32 num, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void PreventDefaultAction ()
void RefreshDuration ()
void Remove (uint32 removeMode=0)
void SetCharges (uint8 charges)
void SetDuration (int32 duration, bool withMods=false)
void SetMaxDuration (int32 duration)
void SetStackAmount (uint8 num)
Public Member Functions inherited from _SpellScript
std::string const * _GetScriptName () const
virtual void _Init (std::string const *scriptname, uint32 spellId)
virtual void _Register ()
 _SpellScript ()
virtual void _Unload ()
virtual void Unload ()
virtual bool Validate (SpellInfo const *)
virtual ~_SpellScript ()
Public Attributes inherited from AuraScript
HookList< AuraDispelHandler > AfterDispel
HookList< EffectAbsorbHandler > AfterEffectAbsorb
HookList< EffectApplyHandler > AfterEffectApply
HookList< EffectManaShieldHandler > AfterEffectManaShield
HookList< EffectProcHandler > AfterEffectProc
HookList< EffectApplyHandler > AfterEffectRemove
HookList< AuraProcHandler > AfterProc
HookList< CheckAreaTargetHandler > DoCheckAreaTarget
HookList< CheckProcHandler > DoCheckProc
HookList< EffectCalcAmountHandler > DoEffectCalcAmount
HookList< EffectCalcPeriodicHandler > DoEffectCalcPeriodic
HookList< EffectCalcSpellModHandler > DoEffectCalcSpellMod
HookList< AuraProcHandler > DoPrepareProc
HookList< AuraDispelHandler > OnDispel
HookList< EffectAbsorbHandler > OnEffectAbsorb
HookList< EffectApplyHandler > OnEffectApply
HookList< EffectManaShieldHandler > OnEffectManaShield
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectProcHandler > OnEffectProc
HookList< EffectApplyHandler > OnEffectRemove
HookList< EffectSplitHandler > OnEffectSplit
HookList< EffectUpdatePeriodicHandler > OnEffectUpdatePeriodic
HookList< AuraProcHandler > OnProc
Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
std::string const * m_scriptName
uint32 m_scriptSpellId

Detailed Description

Definition at line 2481 of file spell_generic.cpp.

Member Function Documentation

◆ GetPennatSpellId()

uint32 spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::GetPennatSpellId ( Player * player,
Unit * mount )
inlineprivate

Definition at line 2511 of file spell_generic.cpp.

References ACHIEVEMENT_ARGENT_VALOR, ACHIEVEMENT_CHAMPION_ALLIANCE, ACHIEVEMENT_CHAMPION_DARNASSUS, ACHIEVEMENT_CHAMPION_GNOMEREGAN, ACHIEVEMENT_CHAMPION_HORDE, ACHIEVEMENT_CHAMPION_IRONFORGE, ACHIEVEMENT_CHAMPION_ORGRIMMAR, ACHIEVEMENT_CHAMPION_SEN_JIN, ACHIEVEMENT_CHAMPION_SILVERMOON, ACHIEVEMENT_CHAMPION_STORMWIND, ACHIEVEMENT_CHAMPION_THE_EXODAR, ACHIEVEMENT_CHAMPION_THUNDER_BLUFF, ACHIEVEMENT_CHAMPION_UNDERCITY, CLASS_DEATH_KNIGHT, Unit::getClass(), Object::GetEntry(), Player::GetQuestRewardStatus(), Player::HasAchieved(), NPC_ARGENT_HAWKSTRIDER_ASPIRANT, NPC_ARGENT_STEED_ASPIRANT, NPC_ARGENT_WARHORSE, NPC_DARK_SPEAR_RAPTOR, NPC_DARNASSIAN_NIGHTSABER, NPC_EXODAR_ELEKK, NPC_FORSAKEN_WARHORSE, NPC_GNOMEREGAN_MECHANOSTRIDER, NPC_IRONFORGE_RAM, NPC_ORGRIMMAR_WOLF, NPC_SILVERMOON_HAWKSTRIDER, NPC_STORMWIND_STEED, NPC_THUNDER_BLUFF_KODO, QUEST_A_VALIANT_OF_DARNASSUS, QUEST_A_VALIANT_OF_GNOMEREGAN, QUEST_A_VALIANT_OF_IRONFORGE, QUEST_A_VALIANT_OF_ORGRIMMAR, QUEST_A_VALIANT_OF_SEN_JIN, QUEST_A_VALIANT_OF_SILVERMOON, QUEST_A_VALIANT_OF_STORMWIND, QUEST_A_VALIANT_OF_THE_EXODAR, QUEST_A_VALIANT_OF_THUNDER_BLUFF, QUEST_A_VALIANT_OF_UNDERCITY, QUEST_VALIANT_OF_DARNASSUS, QUEST_VALIANT_OF_GNOMEREGAN, QUEST_VALIANT_OF_IRONFORGE, QUEST_VALIANT_OF_ORGRIMMAR, QUEST_VALIANT_OF_SEN_JIN, QUEST_VALIANT_OF_SILVERMOON, QUEST_VALIANT_OF_STORMWIND, QUEST_VALIANT_OF_THE_EXODAR, QUEST_VALIANT_OF_THUNDER_BLUFF, QUEST_VALIANT_OF_UNDERCITY, SPELL_PENNANT_ARGENT_CRUSADE_ASPIRANT, SPELL_PENNANT_ARGENT_CRUSADE_CHAMPION, SPELL_PENNANT_ARGENT_CRUSADE_VALIANT, SPELL_PENNANT_DARNASSUS_ASPIRANT, SPELL_PENNANT_DARNASSUS_CHAMPION, SPELL_PENNANT_DARNASSUS_VALIANT, SPELL_PENNANT_EBON_BLADE_ASPIRANT, SPELL_PENNANT_EBON_BLADE_CHAMPION, SPELL_PENNANT_EBON_BLADE_VALIANT, SPELL_PENNANT_EXODAR_ASPIRANT, SPELL_PENNANT_EXODAR_CHAMPION, SPELL_PENNANT_EXODAR_VALIANT, SPELL_PENNANT_GNOMEREGAN_ASPIRANT, SPELL_PENNANT_GNOMEREGAN_CHAMPION, SPELL_PENNANT_GNOMEREGAN_VALIANT, SPELL_PENNANT_IRONFORGE_ASPIRANT, SPELL_PENNANT_IRONFORGE_CHAMPION, SPELL_PENNANT_IRONFORGE_VALIANT, SPELL_PENNANT_ORGRIMMAR_ASPIRANT, SPELL_PENNANT_ORGRIMMAR_CHAMPION, SPELL_PENNANT_ORGRIMMAR_VALIANT, SPELL_PENNANT_SEN_JIN_ASPIRANT, SPELL_PENNANT_SEN_JIN_CHAMPION, SPELL_PENNANT_SEN_JIN_VALIANT, SPELL_PENNANT_SILVERMOON_ASPIRANT, SPELL_PENNANT_SILVERMOON_CHAMPION, SPELL_PENNANT_SILVERMOON_VALIANT, SPELL_PENNANT_STORMWIND_ASPIRANT, SPELL_PENNANT_STORMWIND_CHAMPION, SPELL_PENNANT_STORMWIND_VALIANT, SPELL_PENNANT_THUNDER_BLUFF_ASPIRANT, SPELL_PENNANT_THUNDER_BLUFF_CHAMPION, SPELL_PENNANT_THUNDER_BLUFF_VALIANT, SPELL_PENNANT_UNDERCITY_ASPIRANT, SPELL_PENNANT_UNDERCITY_CHAMPION, and SPELL_PENNANT_UNDERCITY_VALIANT.

Referenced by HandleApplyEffect().

◆ HandleApplyEffect()

void spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::HandleApplyEffect ( AuraEffect const * ,
AuraEffectHandleModes  )
inlineprivate

◆ HandleRemoveEffect()

void spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::HandleRemoveEffect ( AuraEffect const * ,
AuraEffectHandleModes  )
inlineprivate

Definition at line 2505 of file spell_generic.cpp.

References _pennantSpellId, and AuraScript::GetCaster().

Referenced by Register().

◆ Load()

bool spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::Load ( )
inlineprivatevirtual

Reimplemented from _SpellScript.

Definition at line 2487 of file spell_generic.cpp.

References _pennantSpellId, AuraScript::GetCaster(), Object::GetTypeId(), OVERRIDE, and TYPEID_PLAYER.

◆ PrepareAuraScript()

spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::PrepareAuraScript ( spell_gen_on_tournament_mount_AuraScript )
private

◆ Register()

void spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::Register ( )
inlineprivatevirtual

Member Data Documentation

◆ _pennantSpellId

uint32 spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::_pennantSpellId
private

Definition at line 2485 of file spell_generic.cpp.

Referenced by HandleApplyEffect(), HandleRemoveEffect(), and Load().


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