mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11252] One missing case for save non-static spawned creatures.
This commit is contained in:
parent
7b070a93aa
commit
acc12cc9ed
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue