This commit is contained in:
aozhiwei 2021-08-25 02:18:44 +00:00
commit 2bd807d5a3
2 changed files with 13 additions and 0 deletions

View File

@ -519,6 +519,16 @@ void Bullet::ProcC4Bomb(Car* target, int delay_time)
task->bomb_pos = GetPos();
if (target) {
task->follow_target.Attach(target);
if (gun_meta->int_param1 > 0) {
int buff_uniid = target->TryAddBuff(sender.Get(), gun_meta->int_param1);
if (buff_uniid != 0) {
Buff* buff = target->GetBuffByUniId(buff_uniid);
if (buff && buff->remover_timer) {
target->room->xtimer.ModifyTimer(buff->remover_timer,
std::max(1, (int)(delay_time / FRAME_RATE_MS)));
}
}
}
}
task->gun_meta = gun_meta;
task->meta = meta;

View File

@ -254,6 +254,9 @@ namespace MetaData
)
);
lock_time += strings2.size() > 3 ? a8::XValue(strings2[3]).GetInt() : 0;
if (strings2.size() > 4 && a8::XValue(strings2[4]).GetInt() == 1) {
lock_time = 0;
}
}
}
{