AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Functions | |
bool | HandleLearnSpellCommand (ChatHandler *handler, Player *targetPlayer, SpellInfo const *spell, Optional< EXACT_SEQUENCE("all")> allRanks) |
bool | HandleUnlearnSpellCommand (ChatHandler *handler, Player *targetPlayer, SpellInfo const *spell, Optional< EXACT_SEQUENCE("all")> allRanks) |
bool Acore::PlayerCommand::HandleLearnSpellCommand | ( | ChatHandler * | handler, |
Player * | targetPlayer, | ||
SpellInfo const * | spell, | ||
Optional< EXACT_SEQUENCE("all")> | allRanks | ||
) |
References SpellInfo::GetFirstRankSpell(), ChatHandler::GetNameLink(), ChatHandler::GetPlayer(), GetTalentSpellCost(), Player::HasSpell(), SpellInfo::Id, SpellMgr::IsSpellValid(), LANG_COMMAND_SPELL_BROKEN, LANG_TARGET_KNOWN_SPELL, LANG_YOU_KNOWN_SPELL, Player::learnSpell(), ChatHandler::SendErrorMessage(), Player::SendTalentsInfoData(), and sSpellMgr.
Referenced by learn_commandscript::HandleLearnCommand(), and player_commandscript::HandlePlayerLearnCommand().
bool Acore::PlayerCommand::HandleUnlearnSpellCommand | ( | ChatHandler * | handler, |
Player * | targetPlayer, | ||
SpellInfo const * | spell, | ||
Optional< EXACT_SEQUENCE("all")> | allRanks | ||
) |
References GetTalentSpellCost(), Player::HasSpell(), SpellInfo::Id, LANG_FORGET_SPELL, Player::removeSpell(), ChatHandler::SendSysMessage(), Player::SendTalentsInfoData(), SPEC_MASK_ALL, and sSpellMgr.
Referenced by player_commandscript::HandlePlayerUnLearnCommand(), and learn_commandscript::HandleUnLearnCommand().