|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#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 |
Definition at line 14 of file ThreatCalcHelper.h.
|
inlinestatic |
Definition at line 24 of file ThreatCalcHelper.h.
Referenced by calcThreat().
|
static |
Definition at line 22 of file ThreatManager.cpp.
References SpellEffectInfo::ApplyAuraName, ApplySpellThreatModifiers(), Unit::ApplyTotalThreatModifier(), SpellEffectInfo::Effect, SpellInfo::Effects, Unit::GetSpellModOwner(), SpellInfo::Id, ThreatCalcHelper::SpellThreatCalculation::ignoresUnitModifiers, MAX_SPELL_EFFECTS, SPELL_AURA_PERIODIC_ENERGIZE, SPELL_EFFECT_ENERGIZE, SPELLMOD_THREAT, sSpellMgr, and ThreatCalcHelper::SpellThreatCalculation::threat.
Referenced by ThreatManager::addThreat(), and HostileRefManager::threatAssist().
|
static |
Definition at line 55 of file ThreatManager.cpp.
References ASSERT, SpellInfo::AttributesEx, Object::GetTypeId(), WorldObject::InSamePhase(), Unit::IsAlive(), Player::IsGameMaster(), WorldObject::IsInMap(), SPELL_ATTR1_NO_THREAT, Object::ToPlayer(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by ThreatManager::addThreat(), and HostileRefManager::threatAssist().
|
static |
Definition at line 16 of file ThreatCalcHelper.h.