Skip to content

Commit 305b5c1

Browse files
authored
Merge pull request #617 from RiotNOR/master
2 parents b735de4 + 929dfb0 commit 305b5c1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/demoinfocs/datatables.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,12 @@ func (p *parser) bindGrenadeProjectiles(entity st.Entity) {
679679

680680
p.gameEventHandler.addThrownGrenade(proj.Thrower, proj.WeaponInstance)
681681

682-
p.gameState.flyingFlashbangs = append(p.gameState.flyingFlashbangs, &FlyingFlashbang{
683-
projectile: proj,
684-
flashedEntityIDs: []int{},
685-
})
682+
if proj.WeaponInstance.Type == common.EqFlash {
683+
p.gameState.flyingFlashbangs = append(p.gameState.flyingFlashbangs, &FlyingFlashbang{
684+
projectile: proj,
685+
flashedEntityIDs: []int{},
686+
})
687+
}
686688

687689
proj.Trajectory = append(proj.Trajectory, common.TrajectoryEntry{
688690
Tick: p.gameState.ingameTick,

0 commit comments

Comments
 (0)