AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AuraScript::EffectAbsorbHandler Class Reference

#include "SpellScript.h"

Inheritance diagram for AuraScript::EffectAbsorbHandler:
AuraScript::EffectBase _SpellScript::EffectAuraNameCheck _SpellScript::EffectHook

Public Member Functions

 EffectAbsorbHandler (AuraEffectAbsorbFnType _pEffectHandlerScript, uint8 _effIndex)
 
void Call (AuraScript *auraScript, AuraEffect *aurEff, DamageInfo &dmgInfo, uint32 &absorbAmount)
 
- Public Member Functions inherited from AuraScript::EffectBase
 EffectBase (uint8 _effIndex, uint16 _effName)
 
std::string ToString ()
 
bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex) override
 
- Public Member Functions inherited from _SpellScript::EffectAuraNameCheck
 EffectAuraNameCheck (uint16 _effAurName)
 
bool Check (SpellInfo const *spellInfo, uint8 effIndex)
 
std::string ToString ()
 
- Public Member Functions inherited from _SpellScript::EffectHook
 EffectHook (uint8 _effIndex)
 
virtual ~EffectHook ()
 
uint8 GetAffectedEffectsMask (SpellInfo const *spellInfo)
 
bool IsEffectAffected (SpellInfo const *spellInfo, uint8 effIndex)
 
virtual bool CheckEffect (SpellInfo const *spellInfo, uint8 effIndex)=0
 
std::string EffIndexToString ()
 

Private Attributes

AuraEffectAbsorbFnType pEffectHandlerScript
 

Additional Inherited Members

- Protected Attributes inherited from _SpellScript::EffectHook
uint8 effIndex
 

Detailed Description

Constructor & Destructor Documentation

◆ EffectAbsorbHandler()

AuraScript::EffectAbsorbHandler::EffectAbsorbHandler ( AuraEffectAbsorbFnType  _pEffectHandlerScript,
uint8  _effIndex 
)
868{
869 pEffectHandlerScript = _pEffectHandlerScript;
870}
@ SPELL_AURA_SCHOOL_ABSORB
Definition: SpellAuraDefines.h:132
Definition: SpellScript.h:556
AuraEffectAbsorbFnType pEffectHandlerScript
Definition: SpellScript.h:617

References pEffectHandlerScript.

Member Function Documentation

◆ Call()

void AuraScript::EffectAbsorbHandler::Call ( AuraScript auraScript,
AuraEffect aurEff,
DamageInfo dmgInfo,
uint32 absorbAmount 
)
873{
874 (auraScript->*pEffectHandlerScript)(aurEff, dmgInfo, absorbAmount);
875}

Member Data Documentation

◆ pEffectHandlerScript

AuraEffectAbsorbFnType AuraScript::EffectAbsorbHandler::pEffectHandlerScript
private

Referenced by EffectAbsorbHandler().