Fixed rippers persisting forever if Revengeance is toggled off while they are active

This commit is contained in:
CongratsIsTrash committed 2025-11-24 18:00:50 -05:00
1 parent 6b94e6fe74
commit ec27d47d48
1 file changed
+6 -2
+6 -2
View File
@@ -796,7 +796,8 @@ namespace CalamityMod.CalPlayer
// Apply the rage change and cap rage in both directions.
// Changes are only applied if the Rage mechanic is available.
if (RageEnabled)
// CIT 24NOV2025: Fixed an exploit which allowed Rage to persist forever if Revengeance is toggled off while active.
if (RageEnabled || rageDiff < 0f)
{
rage += rageDiff;
if (rage < 0f)
@@ -877,7 +878,10 @@ namespace CalamityMod.CalPlayer
// Apply the adrenaline change and cap adrenaline in both directions.
// Changes are only applied if the Adrenaline mechanic is available.
if (AdrenalineEnabled && adrenalinePauseTimer == 0)
//
// CIT 24NOV2025: Adrenaline cannot be exploited the same way as Rage, since difficulty cannot be changed while a boss is alive.
// Nevertheless, I will still give it the same exploit fix as Rage just in case there is some method to do it.
if ((AdrenalineEnabled || adrenalineDiff < 0f) && adrenalinePauseTimer == 0)
{
adrenaline += adrenalineDiff;
if (adrenaline < 0f)