Skip to content

Commit b54fa4c

Browse files
committed
increment beforeRefillDashCount only if StartDash returns StDash
1 parent c80ec49 commit b54fa4c

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Code/Entities/OneDashWingedStrawberry.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ private static void Player_OnDie(Player player) {
8282
private static int Player_StartDash(On.Celeste.Player.orig_StartDash orig, Player self) {
8383
int state = orig(self);
8484

85-
ShroomHelperModule.Session.beforeRefillDashCount++;
86-
if (ShroomHelperModule.Session.beforeRefillDashCount > 1) {
87-
ShroomHelperModule.Session.brokeDashLimitInRoom = true;
85+
if (state is Player.StDash) {
86+
ShroomHelperModule.Session.beforeRefillDashCount++;
87+
if (ShroomHelperModule.Session.beforeRefillDashCount > 1) {
88+
ShroomHelperModule.Session.brokeDashLimitInRoom = true;
89+
}
8890
}
8991

9092
return state;

everest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- Name: ShroomHelper
2-
Version: 1.2.6
2+
Version: 1.2.7
33
DLL: Code/bin/ShroomHelper.dll
44
Dependencies:
55
- Name: Everest

0 commit comments

Comments
 (0)