TrinityCore
Loading...
Searching...
No Matches
npc_thorim_trashAI::AIHelper Struct Reference

Classes

class  MostHPMissingInRange
 

Static Public Member Functions

static uint32 GetTotalHeal (SpellInfo const *spellInfo, Unit const *caster)
 returns heal amount of the given spell including hots
 
static uint32 GetRemainingHealOn (Unit *target)
 returns remaining heal amount on given target
 
static Unit * GetUnitWithMostMissingHp (SpellInfo const *spellInfo, Unit *caster)
 
static Unit * GetHealTarget (SpellInfo const *spellInfo, Unit *caster)
 

Detailed Description

Definition at line 950 of file boss_thorim.cpp.

Member Function Documentation

◆ GetHealTarget()

static Unit * npc_thorim_trashAI::AIHelper::GetHealTarget ( SpellInfo const *  spellInfo,
Unit *  caster 
)
inlinestatic

◆ GetRemainingHealOn()

static uint32 npc_thorim_trashAI::AIHelper::GetRemainingHealOn ( Unit *  target)
inlinestatic

returns remaining heal amount on given target

Definition at line 968 of file boss_thorim.cpp.

References Unit::GetAuraEffectsByType(), and SPELL_AURA_PERIODIC_HEAL.

Referenced by GetHealTarget(), and npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()().

◆ GetTotalHeal()

static uint32 npc_thorim_trashAI::AIHelper::GetTotalHeal ( SpellInfo const *  spellInfo,
Unit const *  caster 
)
inlinestatic

returns heal amount of the given spell including hots

Definition at line 953 of file boss_thorim.cpp.

References SpellInfo::GetEffects(), SPELL_AURA_PERIODIC_HEAL, SPELL_EFFECT_APPLY_AURA, and SPELL_EFFECT_HEAL.

Referenced by GetHealTarget(), GetUnitWithMostMissingHp(), and npc_thorim_trashAI::UseAbility().

◆ GetUnitWithMostMissingHp()

static Unit * npc_thorim_trashAI::AIHelper::GetUnitWithMostMissingHp ( SpellInfo const *  spellInfo,
Unit *  caster 
)
inlinestatic

Definition at line 1013 of file boss_thorim.cpp.

References SpellInfo::GetMaxRange(), GetTotalHeal(), and Cell::VisitGridObjects().

Referenced by GetHealTarget().


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