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

Public Member Functions

bool WasUsedByMutilate () const
 
bool CheckProc (ProcEventInfo &eventInfo)
 
void Register () override
 
- 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 (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
 
- 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 bool Validate (SpellInfo const *)
 
virtual bool Load ()
 
virtual void Unload ()
 

Private Member Functions

 PrepareAuraScript (spell_rog_cold_blood)
 

Private Attributes

bool _usedByMutilate = false
 

Additional Inherited Members

- 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< CheckEffectProcHandlerDoCheckEffectProc
 
HookList< AfterCheckProcHandlerDoAfterCheckProc
 
HookList< AuraProcHandlerDoPrepareProc
 
HookList< AuraProcHandlerOnProc
 
HookList< AuraProcHandlerAfterProc
 
HookList< EffectProcHandlerOnEffectProc
 
HookList< EffectProcHandlerAfterEffectProc
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string const * m_scriptName
 
uint32 m_scriptSpellId
 

Detailed Description

Member Function Documentation

◆ CheckProc()

bool spell_rog_cold_blood::CheckProc ( ProcEventInfo eventInfo)
inline
1116 {
1117 SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
1118 if (!spellInfo)
1119 return true;
1120
1121 // Block Mutilate MH (0x2) and OH (0x4) from consuming the charge
1122 if (spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE
1123 && (spellInfo->SpellFamilyFlags[1] & 0x6))
1124 {
1125 _usedByMutilate = true;
1126 return false;
1127 }
1128
1129 return true;
1130 }
@ SPELLFAMILY_ROGUE
Definition SharedDefines.h:3794
SpellInfo const * GetSpellInfo() const
Definition Unit.cpp:299
Definition SpellInfo.h:340
flag96 SpellFamilyFlags
Definition SpellInfo.h:412
uint32 SpellFamilyName
Definition SpellInfo.h:411
bool _usedByMutilate
Definition spell_rogue.cpp:1110

References _usedByMutilate, ProcEventInfo::GetSpellInfo(), SPELLFAMILY_ROGUE, SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.

Referenced by Register().

◆ PrepareAuraScript()

spell_rog_cold_blood::PrepareAuraScript ( spell_rog_cold_blood  )
private

◆ Register()

void spell_rog_cold_blood::Register ( )
inlineoverridevirtual

Implements _SpellScript.

1133 {
1135 }
#define AuraCheckProcFn(F)
Definition SpellScript.h:829
HookList< CheckProcHandler > DoCheckProc
Definition SpellScript.h:828
bool CheckProc(ProcEventInfo &eventInfo)
Definition spell_rogue.cpp:1115

References AuraCheckProcFn, CheckProc(), and AuraScript::DoCheckProc.

◆ WasUsedByMutilate()

bool spell_rog_cold_blood::WasUsedByMutilate ( ) const
inline
1113{ return _usedByMutilate; }

References _usedByMutilate.

Member Data Documentation

◆ _usedByMutilate

bool spell_rog_cold_blood::_usedByMutilate = false
private

Referenced by CheckProc(), and WasUsedByMutilate().


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