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

#include "SpellScript.h"

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

Public Member Functions

 EffectCalcAmountHandler (AuraEffectCalcAmountFnType _pEffectHandlerScript, uint8 _effIndex, uint16 _effName)
 
void Call (AuraScript *auraScript, AuraEffect const *aurEff, int32 &amount, bool &canBeRecalculated)
 
- 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

AuraEffectCalcAmountFnType pEffectHandlerScript
 

Additional Inherited Members

- Protected Attributes inherited from _SpellScript::EffectHook
uint8 effIndex
 

Detailed Description

Constructor & Destructor Documentation

◆ EffectCalcAmountHandler()

AuraScript::EffectCalcAmountHandler::EffectCalcAmountHandler ( AuraEffectCalcAmountFnType  _pEffectHandlerScript,
uint8  _effIndex,
uint16  _effName 
)
821 : AuraScript::EffectBase(_effIndex, _effName)
822{
823 pEffectHandlerScript = _pEffectHandlerScript;
824}
Definition: SpellScript.h:556
AuraEffectCalcAmountFnType pEffectHandlerScript
Definition: SpellScript.h:584

References pEffectHandlerScript.

Member Function Documentation

◆ Call()

void AuraScript::EffectCalcAmountHandler::Call ( AuraScript auraScript,
AuraEffect const *  aurEff,
int32 amount,
bool &  canBeRecalculated 
)
827{
828 (auraScript->*pEffectHandlerScript)(aurEff, amount, canBeRecalculated);
829}

Member Data Documentation

◆ pEffectHandlerScript

AuraEffectCalcAmountFnType AuraScript::EffectCalcAmountHandler::pEffectHandlerScript
private

Referenced by EffectCalcAmountHandler().