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

#include "CreatureData.h"

Public Member Functions

 TrainerSpell ()
 
bool IsCastable () const
 

Public Attributes

uint32 spell {0}
 
uint32 spellCost {0}
 
uint32 reqSkill {0}
 
uint32 reqSkillValue {0}
 
uint32 reqLevel {0}
 
uint32 learnedSpell [3]
 
uint32 reqSpell {0}
 

Detailed Description

Constructor & Destructor Documentation

◆ TrainerSpell()

TrainerSpell::TrainerSpell ( )
inline
512 {
513 for (unsigned int & i : learnedSpell)
514 i = 0;
515 }
uint32 learnedSpell[3]
Definition: CreatureData.h:522

References learnedSpell.

Member Function Documentation

◆ IsCastable()

bool TrainerSpell::IsCastable ( ) const
inline
526{ return learnedSpell[0] != spell; }
uint32 spell
Definition: CreatureData.h:517

References learnedSpell, and spell.

Referenced by WorldSession::HandleTrainerBuySpellOpcode().

Member Data Documentation

◆ learnedSpell

◆ reqLevel

◆ reqSkill

◆ reqSkillValue

◆ reqSpell

◆ spell

◆ spellCost