This commit is contained in:
aozhiwei 2023-03-24 22:45:46 +08:00
parent aad3bd2fbe
commit 3f54fef02f

View File

@ -299,7 +299,11 @@ void CallFuncBuff::ProcAddEnergyShield()
void CallFuncBuff::ProcAddHp()
{
if (!owner->dead) {
owner->AddHp(hold_param2_);
if (std::abs(owner->GetMaxHP() - owner->GetHP()) < 0.001f) {
is_valid_ = false;
} else {
owner->AddHp(hold_param2_);
}
}
}