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

#include "SpellScript.h"

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

Public Member Functions

 EffectSplitHandler (AuraEffectSplitFnType _pEffectHandlerScript, uint8 _effIndex)
 
void Call (AuraScript *auraScript, AuraEffect *aurEff, DamageInfo &dmgInfo, uint32 &splitAmount)
 
- 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

AuraEffectSplitFnType pEffectHandlerScript
 

Additional Inherited Members

- Protected Attributes inherited from _SpellScript::EffectHook
uint8 effIndex
 

Detailed Description

Constructor & Destructor Documentation

◆ EffectSplitHandler()

AuraScript::EffectSplitHandler::EffectSplitHandler ( AuraEffectSplitFnType  _pEffectHandlerScript,
uint8  _effIndex 
)
890{
891 pEffectHandlerScript = _pEffectHandlerScript;
892}
@ SPELL_AURA_SPLIT_DAMAGE_PCT
Definition: SpellAuraDefines.h:144
Definition: SpellScript.h:556
AuraEffectSplitFnType pEffectHandlerScript
Definition: SpellScript.h:633

References pEffectHandlerScript.

Member Function Documentation

◆ Call()

void AuraScript::EffectSplitHandler::Call ( AuraScript auraScript,
AuraEffect aurEff,
DamageInfo dmgInfo,
uint32 splitAmount 
)
895{
896 (auraScript->*pEffectHandlerScript)(aurEff, dmgInfo, splitAmount);
897}

Member Data Documentation

◆ pEffectHandlerScript

AuraEffectSplitFnType AuraScript::EffectSplitHandler::pEffectHandlerScript
private

Referenced by EffectSplitHandler().