AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Trainer::Spell Struct Reference

#include "Trainer.h"

Public Member Functions

bool IsCastable () const
 

Public Attributes

uint32 SpellId = 0
 
uint32 MoneyCost = 0
 
uint32 ReqSkillLine = 0
 
uint32 ReqSkillRank = 0
 
std::array< uint32, 3 > ReqAbility = { }
 
uint8 ReqLevel = 0
 

Detailed Description

Member Function Documentation

◆ IsCastable()

bool Spell::IsCastable ( ) const
28 {
29 return sSpellMgr->AssertSpellInfo(SpellId)->HasEffect(SPELL_EFFECT_LEARN_SPELL);
30 }
@ SPELL_EFFECT_LEARN_SPELL
Definition SharedDefines.h:825
#define sSpellMgr
Definition SpellMgr.h:826
uint32 SpellId
Definition Trainer.h:55

References SPELL_EFFECT_LEARN_SPELL, SpellId, and sSpellMgr.

Referenced by Trainer::Trainer::TeachSpell().

Member Data Documentation

◆ MoneyCost

uint32 Trainer::Spell::MoneyCost = 0

◆ ReqAbility

std::array<uint32, 3> Trainer::Spell::ReqAbility = { }

◆ ReqLevel

uint8 Trainer::Spell::ReqLevel = 0

◆ ReqSkillLine

uint32 Trainer::Spell::ReqSkillLine = 0

◆ ReqSkillRank

uint32 Trainer::Spell::ReqSkillRank = 0

◆ SpellId


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