TrinityCore
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

Definition at line 53 of file Trainer.h.

Member Function Documentation

◆ IsCastable()

bool Spell::IsCastable ( ) const

Definition at line 31 of file Trainer.cpp.

References DIFFICULTY_NONE, SPELL_EFFECT_LEARN_SPELL, SpellId, and sSpellMgr.

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

Member Data Documentation

◆ MoneyCost

uint32 Trainer::Spell::MoneyCost = 0

Definition at line 56 of file Trainer.h.

Referenced by ObjectMgr::LoadTrainers(), and Trainer::Trainer::TeachSpell().

◆ ReqAbility

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

Definition at line 59 of file Trainer.h.

Referenced by Trainer::Trainer::GetSpellState(), and ObjectMgr::LoadTrainers().

◆ ReqLevel

uint8 Trainer::Spell::ReqLevel = 0

Definition at line 60 of file Trainer.h.

Referenced by Trainer::Trainer::GetSpellState(), and ObjectMgr::LoadTrainers().

◆ ReqSkillLine

uint32 Trainer::Spell::ReqSkillLine = 0

Definition at line 57 of file Trainer.h.

Referenced by Trainer::Trainer::GetSpellState(), and ObjectMgr::LoadTrainers().

◆ ReqSkillRank

uint32 Trainer::Spell::ReqSkillRank = 0

Definition at line 58 of file Trainer.h.

Referenced by Trainer::Trainer::GetSpellState(), and ObjectMgr::LoadTrainers().

◆ SpellId


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