Corpses update: cd27fd38b93884797c094a82dc7beb0498e2f124
This commit is contained in:
1 parent
b3ea9fbbe5
commit
b20c9ae283
32 files changed
+324
-428
No files matched your search
@@ -615,8 +615,10 @@ public:
|
||||
target->SaveToDB();
|
||||
}
|
||||
else
|
||||
// will resurrected at login without corpse
|
||||
sObjectAccessor->ConvertCorpseForPlayer(targetGuid);
|
||||
{
|
||||
SQLTransaction trans(nullptr);
|
||||
Player::OfflineResurrect(targetGuid, trans);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -835,7 +837,7 @@ public:
|
||||
// Save all players in the world
|
||||
static bool HandleSaveAllCommand(ChatHandler* handler, char const* /*args*/)
|
||||
{
|
||||
sObjectAccessor->SaveAllPlayers();
|
||||
ObjectAccessor::SaveAllPlayers();
|
||||
handler->SendSysMessage(LANG_PLAYERS_SAVED);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user