86 if (!spell || !
sSpellMgr->GetSpellInfo(spell))
89 char const*
all = strtok(
NULL,
" ");
90 bool allRanks = all ? (strncmp(all,
"all", strlen(all)) == 0) :
false;
100 if (!allRanks && targetPlayer->HasSpell(spell))
111 targetPlayer->LearnSpellHighestRank(spell);
113 targetPlayer->LearnSpell(spell,
false);
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
Definition: Language.h:498
Definition: Language.h:490
Definition: SpellInfo.h:326
arena_t NULL
Definition: jemalloc_internal.h:624
Player * getSelectedPlayerOrSelf()
Definition: Chat.cpp:623
Player * GetPlayer() const
Definition: WorldSession.h:927
bool all(float x)
Definition: g3dmath.h:431
Definition: Language.h:497
virtual std::string GetNameLink() const
Definition: Chat.h:101
#define sSpellMgr
Definition: SpellMgr.h:756
uint32_t uint32
Definition: Define.h:150
static bool IsSpellValid(SpellInfo const *spellInfo, Player *player=NULL, bool msg=true)
Some checks for spells, to prevent adding deprecated/broken spells for trainers, spell book...
Definition: SpellMgr.cpp:482
uint32 extractSpellIdFromLink(char *text)
Definition: Chat.cpp:806
WorldSession * GetSession()
Definition: Chat.h:59
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
Definition: Language.h:509