Updated custom commands made.
This commit is contained in:
@@ -580,11 +580,13 @@ public:
|
|||||||
static bool HandleNpcSetFactionTempIdCommand(ChatHandler* handler, const char* args)
|
static bool HandleNpcSetFactionTempIdCommand(ChatHandler* handler, const char* args)
|
||||||
{
|
{
|
||||||
Player* me = handler->GetSession()->GetPlayer();
|
Player* me = handler->GetSession()->GetPlayer();
|
||||||
Creature* creature = me->GetSelectedUnit()->ToCreature();
|
Unit* SelectedCreature = me->GetSelectedUnit();
|
||||||
|
|
||||||
if (!me)
|
if (!SelectedCreature)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Creature* creature = SelectedCreature->ToCreature();
|
||||||
|
|
||||||
if (!creature)
|
if (!creature)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -598,7 +600,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set orginal faction for npc
|
//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();
|
Player* me = handler->GetSession()->GetPlayer();
|
||||||
Creature* creature = me->GetSelectedUnit()->ToCreature();
|
Creature* creature = me->GetSelectedUnit()->ToCreature();
|
||||||
|
|||||||
Reference in New Issue
Block a user