1
This commit is contained in:
parent
c8788106a8
commit
8f72dc6a99
@ -3069,16 +3069,6 @@ void Human::AdjustDecHp(float old_health, float& new_health)
|
|||||||
if (buff) {
|
if (buff) {
|
||||||
if (new_health < GetMaxHP() * buff->meta->param1) {
|
if (new_health < GetMaxHP() * buff->meta->param1) {
|
||||||
new_health = std::max(GetMaxHP() * buff->meta->param1, (float)0);
|
new_health = std::max(GetMaxHP() * buff->meta->param1, (float)0);
|
||||||
#ifdef DEBUG
|
|
||||||
a8::UdpLog::Instance()->Debug("触发新手保护buff %d %s %s %f %f",
|
|
||||||
{
|
|
||||||
room->GetRoomIdx(),
|
|
||||||
account_id,
|
|
||||||
name,
|
|
||||||
old_health,
|
|
||||||
new_health
|
|
||||||
});
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user