This commit is contained in:
aozhiwei 2023-04-20 17:27:40 +08:00
parent fd8f56d971
commit 7ec1087638

View File

@ -985,8 +985,8 @@ void RoomMgr::EnterNewBie(f8::MsgHdr& hdr, const cs::CMJoin& msg)
}
room->AddPlayer(hum);
hum->ProcSkillList();
hum->SetHP(hum->GetBattleContext()->GetMaxHP());
hum->SetMaxHP(hum->GetHP());
hum->SetHP(hum->GetBattleContext()->GetMaxHP() * mt::Param::s().newbie_room_hp_rate);
hum->SetMaxHP(hum->GetBattleContext()->GetMaxHP());
PlayerMgr::Instance()->IncAccountNum(msg.account_id());
if (JsonDataMgr::Instance()->channel != 0 &&
JsonDataMgr::Instance()->channel != channel) {