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.