1
This commit is contained in:
parent
e065184b05
commit
f73bb1429b
@ -519,6 +519,7 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, i
|
|||||||
{
|
{
|
||||||
if (energy_shield > 0.001f) {
|
if (energy_shield > 0.001f) {
|
||||||
energy_shield = std::max(0.0f, energy_shield - dec_hp);
|
energy_shield = std::max(0.0f, energy_shield - dec_hp);
|
||||||
|
RemoveBuffByEffectId(kBET_Shield;
|
||||||
} else {
|
} else {
|
||||||
float old_health = GetHP();
|
float old_health = GetHP();
|
||||||
ability.hp = std::max(0.0f, GetHP() - dec_hp);
|
ability.hp = std::max(0.0f, GetHP() - dec_hp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user