This commit is contained in:
aozhiwei 2021-03-23 17:10:42 +08:00
parent c4c1f33865
commit 5e61db6e30

View File

@ -1069,6 +1069,12 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, i
}
#endif
#endif
{
Buff* buff = GetBuffByEffectId(kBET_Shield);
if (buff) {
dec_hp = std::max((float)1.0, dec_hp - buff->meta->param2);
}
}
auto downed_func =
[] (const a8::XParams& param)
{