修复能量护盾问题
This commit is contained in:
parent
286e5831eb
commit
623411e231
@ -779,6 +779,7 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, i
|
||||
};
|
||||
if (energy_shield > 0.001f) {
|
||||
energy_shield = std::max(0.0f, energy_shield - dec_hp);
|
||||
SyncAroundPlayers(__FILE__, __LINE__, __func__);
|
||||
} else {
|
||||
float old_health = health;
|
||||
health = std::max(0.0f, health - dec_hp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user