This commit is contained in:
aozhiwei 2023-04-02 11:10:03 +08:00
parent 0ecdf81690
commit 393d63f293

View File

@ -52,6 +52,7 @@ struct BulletInfo
const mt::HeroShotAnimation* shot_animi = nullptr;
int bullet_idx = 0;
int bullet_num = 0;
std::shared_ptr<std::set<int>> reporter_list;
a8::XTimerWp keep_shot_animi_timer_ptr;
};
@ -265,7 +266,7 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
bullet_info.fly_distance,
bullet_info.trace_target_uniid,
bullet_info.hand);
if (bullet_uniid && bullet_info.trace_target_uniid) {
if (bullet_uniid && (bullet_info.trace_target_uniid || bullet_info.reporter_list)) {
c->room->AddReportBullet(
bullet_uniid
);