mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
fix(Scripts/Player): some refactor related to PlayerCommand functions (#8975)
This commit is contained in:
@@ -16,12 +16,9 @@
|
||||
*/
|
||||
|
||||
#include "PlayerCommand.h"
|
||||
#include "Chat.h"
|
||||
#include "Language.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
bool PlayerCommand::Learn(ChatHandler* handler, Player* targetPlayer, uint32 spell, char const* all)
|
||||
bool Acore::PlayerCommand::HandleLearnSpellCommand(ChatHandler* handler, Player* targetPlayer, uint32 spell, char const* all)
|
||||
{
|
||||
if (!spell)
|
||||
return false;
|
||||
@@ -77,7 +74,7 @@ bool PlayerCommand::Learn(ChatHandler* handler, Player* targetPlayer, uint32 spe
|
||||
return true;
|
||||
}
|
||||
|
||||
bool PlayerCommand::UnLearn(ChatHandler* handler, Player* target, uint32 spellId, char const* allStr)
|
||||
bool Acore::PlayerCommand::HandleUnlearnSpellCommand(ChatHandler* handler, Player* target, uint32 spellId, char const* allStr)
|
||||
{
|
||||
if (!spellId)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user