mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
Updated custom commands made.
This commit is contained in:
@@ -580,11 +580,13 @@ public:
|
||||
static bool HandleNpcSetFactionTempIdCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
Player* me = handler->GetSession()->GetPlayer();
|
||||
Creature* creature = me->GetSelectedUnit()->ToCreature();
|
||||
Unit* SelectedCreature = me->GetSelectedUnit();
|
||||
|
||||
if (!me)
|
||||
if (!SelectedCreature)
|
||||
return false;
|
||||
|
||||
Creature* creature = SelectedCreature->ToCreature();
|
||||
|
||||
if (!creature)
|
||||
return false;
|
||||
|
||||
@@ -598,7 +600,7 @@ public:
|
||||
}
|
||||
|
||||
//set orginal faction for npc
|
||||
static bool HandleNpcSetOriginalFaction(ChatHandler* handler, const char* args)
|
||||
static bool HandleNpcSetOriginalFaction(ChatHandler* handler, const char* /*args*/)
|
||||
{
|
||||
Player* me = handler->GetSession()->GetPlayer();
|
||||
Creature* creature = me->GetSelectedUnit()->ToCreature();
|
||||
|
||||
Reference in New Issue
Block a user