Skip to content

Commit

Permalink
Fixing homing disc
Browse files Browse the repository at this point in the history
Shouldn't check for bounce unless deadly
  • Loading branch information
justino committed Jan 17, 2024
1 parent d68fb29 commit 07d58ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/discs/homing.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export class HomingDisc extends Disc {
case DiscStates.DEADLY:
if (this.homing) {
this.homeInOnPlayer()
this.checkBounce()
break
}
case DiscStates.BOUNCING:
// Basic Straight Lines
this.location.Add(this.velocity)
this.checkBounce()
break
}

this.checkBounce()
}

Thrown(direction) {
Expand Down

0 comments on commit 07d58ef

Please sign in to comment.