TrinityCore
Loading...
Searching...
No Matches
SpellScript::OnCalcCritChanceHandler Class Referencefinal

#include <SpellScript.h>

Public Types

using ScriptFuncInvoker = SpellScript::ScriptFuncInvoker< void, Unit const *, float & >
 

Public Member Functions

template<typename ScriptFunc >
 OnCalcCritChanceHandler (ScriptFunc handler)
 
void Call (SpellScript *spellScript, Unit const *victim, float &critChance) const
 

Private Attributes

ScriptFuncInvoker _invoker
 

Detailed Description

Definition at line 466 of file SpellScript.h.

Member Typedef Documentation

◆ ScriptFuncInvoker

Constructor & Destructor Documentation

◆ OnCalcCritChanceHandler()

template<typename ScriptFunc >
SpellScript::OnCalcCritChanceHandler::OnCalcCritChanceHandler ( ScriptFunc  handler)
inlineexplicit

Member Function Documentation

◆ Call()

void SpellScript::OnCalcCritChanceHandler::Call ( SpellScript *  spellScript,
Unit const *  victim,
float &  critChance 
) const
inline

Definition at line 490 of file SpellScript.h.

Member Data Documentation

◆ _invoker

ScriptFuncInvoker SpellScript::OnCalcCritChanceHandler::_invoker
private

Definition at line 495 of file SpellScript.h.


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