This commit is contained in:
aozhiwei 2024-01-25 14:08:50 +08:00
parent 7fe296df2c
commit ad48dd2695
2 changed files with 4 additions and 1 deletions

View File

@ -904,6 +904,9 @@ void Bullet::GetHitCreatures(BulletCheckResult& result)
if (c->HasBuffEffect(kBET_BulletThrough)) {
return;
}
if (c->HasBuffEffect(kBET_Dive)) {
return;
}
if (c->HasBuffEffect(kBET_HoldShield)) {
c->CheckBulletHitHoldShield(this, result.eat);
if (result.eat) {

View File

@ -1122,7 +1122,7 @@ void Creature::Initialize()
[this, nature_recover_hp_timer] (int event, const a8::Args* args) mutable
{
if (a8::TIMER_EXEC_EVENT == event) {
if (nature_recover_hp_timer.expired()) {
if (nature_recover_hp_timer.expired() && !HasBuffEffect(kBET_Dive)) {
nature_recover_hp_timer = room->xtimer.SetIntervalWpEx
(
SERVER_FRAME_RATE * mt::Param::s().nature_recover_hp_interval,