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->SetMaxHealth(100 + 30*lvl);
|
||||||
pCreature->SetHealth(100 + 30*lvl);
|
pCreature->SetHealth(100 + 30*lvl);
|
||||||
pCreature->SetLevel(lvl);
|
pCreature->SetLevel(lvl);
|
||||||
pCreature->SaveToDB();
|
|
||||||
|
if (pCreature->HasStaticDBSpawnData())
|
||||||
|
pCreature->SaveToDB();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11251"
|
#define REVISION_NR "11252"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue