EverestAPI / Everest

Everest - Celeste Mod Loader / Mod API
https://everestapi.github.io/
MIT License
369 stars 80 forks source link

Add cassette fly check to Player.OnSquish #846

Open bigkahuna443 opened 2 weeks ago

bigkahuna443 commented 2 weeks ago

The cassette fly state is intended to make the player invincible, but at the moment squish checks are still made against the player. This can cause deaths in modded situations when the return path crosses e.g. block entities.

This patch adds a check at the start of OnSquish to return immediately if the player is in the CassetteFly state.

Here is an example of the behavior before the change and after the change.

(This change was made manually in SJ and I thought it'd be helpful to add into Everest as a whole)