From a5d074e532bdde7cc286607bab06e5fce3d305bf Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Tue, 15 Feb 2022 23:33:39 +0100 Subject: [PATCH] Dubious IL edit change --- ILEditing/MechanicILChanges.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 7d525bc5f1..cfe978115a 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -109,7 +109,7 @@ namespace CalamityMod.ILEditing cursor.EmitDelegate>((Player p) => { CalamityPlayer mp = p.Calamity(); - return mp.disableAllDodges ? 1 : mp.dodgeCooldownTimer; + return mp.disableAllDodges ? 1 : p.Calamity().Cooldowns.ContainsType(typeof(GlobalDodgeCooldown)) ? p.Calamity().Cooldowns.Find(cooldown => cooldown.GetType() == typeof(GlobalDodgeCooldown)).TimeLeft : 0; }); // Bitwise OR the "RNG result" (always zero) with the dodge cooldown. This will only return zero if both values were zero.