[11252] One missing case for save non-static spawned creatures.

This commit is contained in:
VladimirMangos 2011-03-15 21:39:35 +03:00
parent 7b070a93aa
commit acc12cc9ed
2 changed files with 4 additions and 2 deletions

View file

@ -1730,7 +1730,9 @@ bool ChatHandler::HandleNpcChangeLevelCommand(char* args)
pCreature->SetMaxHealth(100 + 30*lvl);
pCreature->SetHealth(100 + 30*lvl);
pCreature->SetLevel(lvl);
pCreature->SaveToDB();
if (pCreature->HasStaticDBSpawnData())
pCreature->SaveToDB();
}
return true;