AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DispelInfo Class Reference

#include "Unit.h"

Public Member Functions

 DispelInfo (Unit *dispeller, uint32 dispellerSpellId, uint8 chargesRemoved)
 
UnitGetDispeller () const
 
uint32 GetDispellerSpellId () const
 
uint8 GetRemovedCharges () const
 
void SetRemovedCharges (uint8 amount)
 

Private Attributes

Unit_dispellerUnit
 
uint32 _dispellerSpell
 
uint8 _chargesRemoved
 

Detailed Description

Constructor & Destructor Documentation

◆ DispelInfo()

DispelInfo::DispelInfo ( Unit dispeller,
uint32  dispellerSpellId,
uint8  chargesRemoved 
)
inlineexplicit
298 :
299 _dispellerUnit(dispeller), _dispellerSpell(dispellerSpellId), _chargesRemoved(chargesRemoved) {}
uint32 _dispellerSpell
Definition: Unit.h:310
uint8 _chargesRemoved
Definition: Unit.h:311
Unit * _dispellerUnit
Definition: Unit.h:309

Member Function Documentation

◆ GetDispeller()

◆ GetDispellerSpellId()

uint32 DispelInfo::GetDispellerSpellId ( ) const
inline
302{ return _dispellerSpell; }

References _dispellerSpell.

◆ GetRemovedCharges()

uint8 DispelInfo::GetRemovedCharges ( ) const
inline

◆ SetRemovedCharges()

void DispelInfo::SetRemovedCharges ( uint8  amount)
inline
305 {
306 _chargesRemoved = amount;
307 }

References _chargesRemoved.

Referenced by spell_halion_marks_aura::BeforeDispel().

Member Data Documentation

◆ _chargesRemoved

uint8 DispelInfo::_chargesRemoved
private

◆ _dispellerSpell

uint32 DispelInfo::_dispellerSpell
private

Referenced by GetDispellerSpellId().

◆ _dispellerUnit

Unit* DispelInfo::_dispellerUnit
private

Referenced by GetDispeller().