AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
spell_brewfest_reveler_transform Class Reference
Inheritance diagram for spell_brewfest_reveler_transform:
AuraScript _SpellScript

Private Member Functions

 PrepareAuraScript (spell_brewfest_reveler_transform)
 
void OnApply (AuraEffect const *, AuraEffectHandleModes)
 
void Register () override
 

Additional Inherited Members

- Public Member Functions inherited from AuraScript
 AuraScript ()
 
bool _Validate (SpellInfo const *entry) override
 
bool _Load (Aura *aura)
 
void _PrepareScriptCall (AuraScriptHookType hookType, AuraApplication const *aurApp=nullptr)
 
void _FinishScriptCall ()
 
bool _IsDefaultActionPrevented ()
 
void PreventDefaultAction ()
 
SpellInfo const * GetSpellInfo () const
 
uint32 GetId () const
 
ObjectGuid GetCasterGUID () const
 
UnitGetCaster () const
 
WorldObjectGetOwner () const
 
UnitGetUnitOwner () const
 
DynamicObjectGetDynobjOwner () const
 
void Remove (uint32 removeMode=0)
 
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
 
- Public Member Functions inherited from _SpellScript
 _SpellScript ()
 
virtual ~_SpellScript ()
 
virtual void _Register ()
 
virtual void _Unload ()
 
virtual void _Init (std::string const *scriptname, uint32 spellId)
 
std::string const * _GetScriptName () const
 
virtual void Register ()=0
 
virtual bool Validate (SpellInfo const *)
 
virtual bool Load ()
 
virtual void Unload ()
 
- Static Public Member Functions inherited from _SpellScript
static bool ValidateSpellInfo (std::initializer_list< uint32 > spellIds)
 
template<class T >
static bool ValidateSpellInfo (T const &spellIds)
 
- 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< EffectAbsorbHandlerOnEffectAbsorb
 
HookList< EffectAbsorbHandlerAfterEffectAbsorb
 
HookList< EffectManaShieldHandlerOnEffectManaShield
 
HookList< EffectManaShieldHandlerAfterEffectManaShield
 
HookList< EffectSplitHandlerOnEffectSplit
 
HookList< CheckProcHandlerDoCheckProc
 
HookList< AfterCheckProcHandlerDoAfterCheckProc
 
HookList< AuraProcHandlerDoPrepareProc
 
HookList< AuraProcHandlerOnProc
 
HookList< AuraProcHandlerAfterProc
 
HookList< EffectProcHandlerOnEffectProc
 
HookList< EffectProcHandlerAfterEffectProc
 
virtual bool _Validate (SpellInfo const *entry)
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string const * m_scriptName
 
uint32 m_scriptSpellId
 

Detailed Description

Member Function Documentation

◆ OnApply()

void spell_brewfest_reveler_transform::OnApply ( AuraEffect const *  ,
AuraEffectHandleModes   
)
inlineprivate
1388 {
1389 uint32 factionId = FACTION_ALLIANCE;
1390 switch (m_scriptSpellId)
1391 {
1397 factionId = FACTION_HORDE;
1398 break;
1402 factionId = FACTION_FRIENDLY;
1403 break;
1404 default:
1405 break;
1406 }
1407
1408 GetTarget()->SetFaction(factionId);
1409 }
std::uint32_t uint32
Definition: Define.h:108
@ SPELL_BREWFEST_REVELER_TRANSFORM_GOBLIN_MALE
Definition: brewfest.cpp:1372
@ FACTION_ALLIANCE
Definition: brewfest.cpp:1369
@ SPELL_BREWFEST_REVELER_TRANSFORM_TROLL
Definition: brewfest.cpp:1377
@ SPELL_BREWFEST_REVELER_TRANSFORM_TAUREN
Definition: brewfest.cpp:1376
@ SPELL_BREWFEST_REVELER_TRANSFORM_GOBLIN_FEMALE
Definition: brewfest.cpp:1373
@ SPELL_BREWFEST_REVELER_TRANSFORM_ORC
Definition: brewfest.cpp:1375
@ SPELL_BREWFEST_REVELER_TRANSFORM_BE
Definition: brewfest.cpp:1374
@ SPELL_BREWFEST_REVELER_TRANSFORM_UNDEAD
Definition: brewfest.cpp:1378
@ FACTION_HORDE
Definition: brewfest.cpp:1370
@ SPELL_DRUNKEN_BREWFEST_REVELER_TRANSFORM_GOBLIN_MALE
Definition: brewfest.cpp:1380
@ FACTION_FRIENDLY
Definition: SharedDefines.h:201
void SetFaction(uint32 faction)
Definition: Unit.cpp:10064
uint32 m_scriptSpellId
Definition: SpellScript.h:107
Unit * GetTarget() const
Definition: SpellScript.cpp:1165

References FACTION_ALLIANCE, FACTION_FRIENDLY, FACTION_HORDE, AuraScript::GetTarget(), _SpellScript::m_scriptSpellId, Unit::SetFaction(), SPELL_BREWFEST_REVELER_TRANSFORM_BE, SPELL_BREWFEST_REVELER_TRANSFORM_GOBLIN_FEMALE, SPELL_BREWFEST_REVELER_TRANSFORM_GOBLIN_MALE, SPELL_BREWFEST_REVELER_TRANSFORM_ORC, SPELL_BREWFEST_REVELER_TRANSFORM_TAUREN, SPELL_BREWFEST_REVELER_TRANSFORM_TROLL, SPELL_BREWFEST_REVELER_TRANSFORM_UNDEAD, and SPELL_DRUNKEN_BREWFEST_REVELER_TRANSFORM_GOBLIN_MALE.

Referenced by Register().

◆ PrepareAuraScript()

spell_brewfest_reveler_transform::PrepareAuraScript ( spell_brewfest_reveler_transform  )
private

◆ Register()

void spell_brewfest_reveler_transform::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

1412 {
1414 }
@ SPELL_AURA_TRANSFORM
Definition: SpellAuraDefines.h:119
@ AURA_EFFECT_HANDLE_REAL
Definition: SpellAuraDefines.h:42
#define AuraEffectApplyFn(F, I, N, M)
Definition: SpellScript.h:743
@ EFFECT_0
Definition: SharedDefines.h:31
HookList< EffectApplyHandler > AfterEffectApply
Definition: SpellScript.h:742
void OnApply(AuraEffect const *, AuraEffectHandleModes)
Definition: brewfest.cpp:1387

References AuraScript::AfterEffectApply, AURA_EFFECT_HANDLE_REAL, AuraEffectApplyFn, EFFECT_0, OnApply(), and SPELL_AURA_TRANSFORM.