Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ThreatCalcHelper Struct Reference

#include <ThreatCalcHelper.h>

Classes

struct  SpellThreatCalculation

Static Public Member Functions

static SpellThreatCalculation ApplySpellThreatModifiers (float threat, float pctMod, bool hasEnergizeEffect)
static float calcThreat (Unit *hatedUnit, Unit *hatingUnit, float threat, uint32 schoolMask=NormalSchoolMask, SpellInfo const *threatSpell=NULL)
static bool isValidProcess (Unit *hatedUnit, Unit *hatingUnit, SpellInfo const *threatSpell=NULL)

Static Public Attributes

static uint32 const NormalSchoolMask = 1

Detailed Description

Definition at line 14 of file ThreatCalcHelper.h.

Member Function Documentation

◆ ApplySpellThreatModifiers()

SpellThreatCalculation ThreatCalcHelper::ApplySpellThreatModifiers ( float threat,
float pctMod,
bool hasEnergizeEffect )
inlinestatic

Definition at line 24 of file ThreatCalcHelper.h.

Referenced by calcThreat().

◆ calcThreat()

◆ isValidProcess()

bool ThreatCalcHelper::isValidProcess ( Unit * hatedUnit,
Unit * hatingUnit,
SpellInfo const * threatSpell = NULL )
static

Member Data Documentation

◆ NormalSchoolMask

uint32 const ThreatCalcHelper::NormalSchoolMask = 1
static

Definition at line 16 of file ThreatCalcHelper.h.


The documentation for this struct was generated from the following files: