AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
TriggeredByAuraSpellData Struct Reference

#include "Spell.h"

Public Member Functions

 TriggeredByAuraSpellData ()
 
void Init (AuraEffect const *aurEff)
 
 operator bool () const
 
bool operator! () const
 

Public Attributes

SpellInfo const * spellInfo
 
int8 effectIndex
 
uint32 tickNumber
 

Detailed Description

Constructor & Destructor Documentation

◆ TriggeredByAuraSpellData()

TriggeredByAuraSpellData::TriggeredByAuraSpellData ( )
inline
271: spellInfo(nullptr), effectIndex(-1), tickNumber(0) {}
int8 effectIndex
Definition: Spell.h:279
SpellInfo const * spellInfo
Definition: Spell.h:278
uint32 tickNumber
Definition: Spell.h:280

Member Function Documentation

◆ Init()

void TriggeredByAuraSpellData::Init ( AuraEffect const *  aurEff)
8917{
8918 spellInfo = aurEff->GetSpellInfo();
8919 effectIndex = aurEff->GetEffIndex();
8920 tickNumber = aurEff->GetTickNumber();
8921}

References effectIndex, AuraEffect::GetEffIndex(), AuraEffect::GetSpellInfo(), AuraEffect::GetTickNumber(), spellInfo, and tickNumber.

Referenced by Spell::prepare().

◆ operator bool()

TriggeredByAuraSpellData::operator bool ( ) const
inline
275{ return spellInfo != nullptr; }

References spellInfo.

◆ operator!()

bool TriggeredByAuraSpellData::operator! ( ) const
inline
276{ return !(bool(*this)); }

Member Data Documentation

◆ effectIndex

int8 TriggeredByAuraSpellData::effectIndex

◆ spellInfo

◆ tickNumber

uint32 TriggeredByAuraSpellData::tickNumber