AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AllSpellScript Class Reference

#include "AllSpellScript.h"

Inheritance diagram for AllSpellScript:
ScriptObject

Public Member Functions

bool IsDatabaseBound () const override
 
virtual void OnCalcMaxDuration (Aura const *, int32 &)
 
virtual bool CanModAuraEffectDamageDone (AuraEffect const *, Unit *, AuraApplication const *, uint8, bool)
 
virtual bool CanModAuraEffectModDamagePercentDone (AuraEffect const *, Unit *, AuraApplication const *, uint8, bool)
 
virtual void OnSpellCheckCast (Spell *, bool, SpellCastResult &)
 
virtual bool CanPrepare (Spell *, SpellCastTargets const *, AuraEffect const *)
 
virtual bool CanScalingEverything (Spell *)
 
virtual bool CanSelectSpecTalent (Spell *)
 
virtual void OnScaleAuraUnitAdd (Spell *, Unit *, uint32, bool, bool, uint8, TargetInfo &)
 
virtual void OnRemoveAuraScaleTargets (Spell *, TargetInfo &, uint8, bool &)
 
virtual void OnBeforeAuraRankForLevel (SpellInfo const *, SpellInfo const *, uint8)
 
virtual void OnDummyEffect (WorldObject *, uint32, SpellEffIndex, GameObject *)
 This hook called after spell dummy effect. More...
 
virtual void OnDummyEffect (WorldObject *, uint32, SpellEffIndex, Creature *)
 This hook called after spell dummy effect. More...
 
virtual void OnDummyEffect (WorldObject *, uint32, SpellEffIndex, Item *)
 This hook called after spell dummy effect. More...
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 AllSpellScript (const char *name, std::vector< uint16 > enabledHooks=std::vector< uint16 >())
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ AllSpellScript()

AllSpellScript::AllSpellScript ( const char *  name,
std::vector< uint16 enabledHooks = std::vector<uint16>() 
)
protected
89{
90 // If empty - enable all available hooks.
91 if (enabledHooks.empty())
92 for (uint16 i = 0; i < ALLSPELLHOOK_END; ++i)
93 enabledHooks.emplace_back(i);
94
95 ScriptRegistry<AllSpellScript>::AddScript(this, std::move(enabledHooks));
96}
std::uint16_t uint16
Definition: Define.h:108
@ ALLSPELLHOOK_END
Definition: AllSpellScript.h:39
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:738
Definition: ScriptObject.h:43

References ScriptRegistry< TScript >::AddScript(), and ALLSPELLHOOK_END.

Member Function Documentation

◆ CanModAuraEffectDamageDone()

virtual bool AllSpellScript::CanModAuraEffectDamageDone ( AuraEffect const *  ,
Unit ,
AuraApplication const *  ,
uint8  ,
bool   
)
inlinevirtual
56{ return true; }

◆ CanModAuraEffectModDamagePercentDone()

virtual bool AllSpellScript::CanModAuraEffectModDamagePercentDone ( AuraEffect const *  ,
Unit ,
AuraApplication const *  ,
uint8  ,
bool   
)
inlinevirtual
58{ return true; }

◆ CanPrepare()

virtual bool AllSpellScript::CanPrepare ( Spell ,
SpellCastTargets const *  ,
AuraEffect const *   
)
inlinevirtual
62{ return true; }

◆ CanScalingEverything()

virtual bool AllSpellScript::CanScalingEverything ( Spell )
inlinevirtual
64{ return false; }

◆ CanSelectSpecTalent()

virtual bool AllSpellScript::CanSelectSpecTalent ( Spell )
inlinevirtual
66{ return true; }

◆ IsDatabaseBound()

bool AllSpellScript::IsDatabaseBound ( ) const
inlineoverridevirtual

Reimplemented from ScriptObject.

51{ return false; }

◆ OnBeforeAuraRankForLevel()

virtual void AllSpellScript::OnBeforeAuraRankForLevel ( SpellInfo const *  ,
SpellInfo const *  ,
uint8   
)
inlinevirtual
72{ }

◆ OnCalcMaxDuration()

virtual void AllSpellScript::OnCalcMaxDuration ( Aura const *  ,
int32  
)
inlinevirtual
54{ }

◆ OnDummyEffect() [1/3]

virtual void AllSpellScript::OnDummyEffect ( WorldObject ,
uint32  ,
SpellEffIndex  ,
Creature  
)
inlinevirtual

This hook called after spell dummy effect.

Parameters
casterContains information about the WorldObject
spellIDContains information about the spell id
effIndexContains information about the SpellEffIndex
creatureTargetContains information about the Creature
92{ }

◆ OnDummyEffect() [2/3]

virtual void AllSpellScript::OnDummyEffect ( WorldObject ,
uint32  ,
SpellEffIndex  ,
GameObject  
)
inlinevirtual

This hook called after spell dummy effect.

Parameters
casterContains information about the WorldObject
spellIDContains information about the spell id
effIndexContains information about the SpellEffIndex
gameObjTargetContains information about the GameObject
82{ }

◆ OnDummyEffect() [3/3]

virtual void AllSpellScript::OnDummyEffect ( WorldObject ,
uint32  ,
SpellEffIndex  ,
Item  
)
inlinevirtual

This hook called after spell dummy effect.

Parameters
casterContains information about the WorldObject
spellIDContains information about the spell id
effIndexContains information about the SpellEffIndex
itemTargetContains information about the Item
102{ }

◆ OnRemoveAuraScaleTargets()

virtual void AllSpellScript::OnRemoveAuraScaleTargets ( Spell ,
TargetInfo ,
uint8  ,
bool &   
)
inlinevirtual
70{ }

◆ OnScaleAuraUnitAdd()

virtual void AllSpellScript::OnScaleAuraUnitAdd ( Spell ,
Unit ,
uint32  ,
bool  ,
bool  ,
uint8  ,
TargetInfo  
)
inlinevirtual
68{ }

◆ OnSpellCheckCast()

virtual void AllSpellScript::OnSpellCheckCast ( Spell ,
bool  ,
SpellCastResult  
)
inlinevirtual
60{ }