Skip to content

Commit

Permalink
fix: projectile hitting after removetime expires
Browse files Browse the repository at this point in the history
- In Mugen, projectiles can still hit after their removetime expires. Because the Ikemen behavior where they cannot hit makes more sense, the Mugen behavior was locked to characters without ikemenversion
  • Loading branch information
potsmugen committed Sep 19, 2023
1 parent 4042fba commit b6c0139
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/char.go
Original file line number Diff line number Diff line change
Expand Up @@ -1438,8 +1438,11 @@ func (p *Projectile) update(playerNo int) {
p.velocity[0] *= -1
}
p.accel, p.velmul, p.anim = [2]float32{}, [...]float32{1, 1}, -1
if p.hits >= 0 {
p.hits = -1
// In Mugen, projectiles can hit even after their removetime expires
if c.stCgi().ikemenver[0] > 0 || c.stCgi().ikemenver[1] > 0 {
if p.hits >= 0 {
p.hits = -1
}
}
}
}
Expand Down

0 comments on commit b6c0139

Please sign in to comment.