fix(Scripts/Player): some refactor related to PlayerCommand functions (#8975)
This commit is contained in:
parent
6cac04d990
commit
a6340d5b11
4 changed files with 23 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue