diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 8ef98a21..12b4d4c8 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -4065,6 +4065,12 @@ void Room::CalcMvp() [this, &max_kill, &max_assist, &max_damage, &max_recover, &max_level, &max_alive] (Human* hum) mutable -> bool { + max_kill += hum->stats->kills; + max_assist += hum->stats->assist; + max_damage += hum->stats->damage_amount_out; + max_recover += hum->stats->heal_amount; + max_level += hum->GetHeroLevel(); + max_alive += hum->stats->alive_time / 1000; return true; }); @@ -4097,7 +4103,7 @@ void Room::CalcMvp() float recover_sco = 0.0f; { if (max_recover > 0) { - float recover = hum->stats->damage_amount_out; + float recover = hum->stats->heal_amount; recover_sco = (param1 - param0) / (max_recover - 0) * (recover - 0) + param0; } }