Skip to content

Commit

Permalink
Clean up null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalobi committed Sep 7, 2024
1 parent 7ac2c1f commit 6982464
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Code/Entities/DashThroughSpikes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ private void OnPlayer(Player player) {
if (((player.StateMachine.State == Player.StDash
|| player.DashAttacking && player.StateMachine.State != Player.StRedDash
|| player.StateMachine.State == Player.StDreamDash
|| (NerdHelperModule.CommunalHelperInterop.GetDreamTunnelDashState != null
&& player.StateMachine.State == NerdHelperModule.CommunalHelperInterop.GetDreamTunnelDashState())
|| player.StateMachine.State == NerdHelperModule.CommunalHelperInterop.GetDreamTunnelDashState?.Invoke()
|| (NerdHelperModule.CommunalHelperInterop.IsSeekerDashAttacking?.Invoke() ?? false)
|| player.StateMachine.State == Player.StRedDash && red)
&& (!zeroSpeedOnly || player.Speed.Equals(Vector2.Zero))
Expand Down

0 comments on commit 6982464

Please sign in to comment.