From 47a4d9c5bc76b9166a9eba9c1168f3931bc0e35f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 6 Sep 2022 16:38:30 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 08d782c3..0144f9fc 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -3525,6 +3525,8 @@ void Human::OnBulletHit(Bullet* bullet) RemoveBuffByEffectId(kBET_PeaceMode); if (!dead && (bullet->IsBomb() || bullet->sender.Get()->team_id != team_id)) { +#ifdef ATTR +#else float old_hp = GetHP(); float old_max_hp = GetMaxHP(); float finaly_dmg = 0; @@ -3556,6 +3558,7 @@ void Human::OnBulletHit(Bullet* bullet) bullet->gun_meta->i->id()); } } +#endif } }