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 463 of file SpellScript.h.

Member Typedef Documentation

◆ ScriptFuncInvoker

Constructor & Destructor Documentation

◆ OnCalcCritChanceHandler()

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

Definition at line 469 of file SpellScript.h.

Member Function Documentation

◆ Call()

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

Definition at line 487 of file SpellScript.h.

Member Data Documentation

◆ _invoker

ScriptFuncInvoker SpellScript::OnCalcCritChanceHandler::_invoker
private

Definition at line 492 of file SpellScript.h.


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