mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/ChatCommands: Add support for enum type arguments (PR #25242)
This commit is contained in:
committed by
GitHub
parent
6c7837f947
commit
5e40eb20e2
@@ -533,13 +533,8 @@ public:
|
||||
}
|
||||
|
||||
//set npcflag of creature
|
||||
static bool HandleNpcSetFlagCommand(ChatHandler* handler, char const* args)
|
||||
static bool HandleNpcSetFlagCommand(ChatHandler* handler, NPCFlags npcFlags)
|
||||
{
|
||||
if (!*args)
|
||||
return false;
|
||||
|
||||
uint32 npcFlags = (uint32) atoi(args);
|
||||
|
||||
Creature* creature = handler->getSelectedCreature();
|
||||
|
||||
if (!creature)
|
||||
|
||||
Reference in New Issue
Block a user