1
This commit is contained in:
parent
c4c1f33865
commit
5e61db6e30
@ -1069,6 +1069,12 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, i
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
|
Buff* buff = GetBuffByEffectId(kBET_Shield);
|
||||||
|
if (buff) {
|
||||||
|
dec_hp = std::max((float)1.0, dec_hp - buff->meta->param2);
|
||||||
|
}
|
||||||
|
}
|
||||||
auto downed_func =
|
auto downed_func =
|
||||||
[] (const a8::XParams& param)
|
[] (const a8::XParams& param)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user