* Force .npc move to move the creature and make sure it respawns from deadstate

(Removes .die/.respawn -requirement on move)
Patch by antihrists
Fixes issue #121

--HG--
branch : trunk
This commit is contained in:
click
2010-04-11 16:22:25 +02:00
parent fcb2f44830
commit a2a2da1342

View File

@@ -1160,7 +1160,7 @@ bool ChatHandler::HandleNpcAddMoveCommand(const char* args)
if (pCreature->isAlive()) // dead creature will reset movement generator at respawn
{
pCreature->setDeathState(JUST_DIED);
pCreature->Respawn();
pCreature->Respawn(true);
}
pCreature->SaveToDB();
}