mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
* 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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user