Skip to content

Commit e5ca769

Browse files
authored
Merge pull request #253 from FFXIV-CombatReborn/the-final-countdown
Fixed longstanding bug with countdowns, you can now do combat during countdown if some leadbrick decides to pull early. RSR will no longer respect countdown timer above all else
2 parents e69c247 + 600ecc2 commit e5ca769

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

RotationSolver.Basic/Rotations/CustomRotation_Invoke.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private void UpdateActions(JobRole role)
158158
IBaseAction.IgnoreClipping = true;
159159

160160
var countDown = Service.CountDownTime;
161-
if (countDown > 0)
161+
if (countDown > 0 && !DataCenter.InCombat)
162162
{
163163
gcdAction = null;
164164
return CountDownAction(countDown);

RotationSolver/Commands/RSCommands_Actions.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,14 @@ internal static void UpdateRotationState()
184184
{
185185
CancelState();
186186
}
187-
//Cancel when pull
188-
else if (Service.CountDownTime == 0 && _lastCountdownTime > 0.2f)
187+
188+
//Holds state if countdown is running and setting is enabled
189+
else if (Service.Config.StartOnCountdown && Service.CountDownTime == 0 && _lastCountdownTime > 0.2f)
189190
{
190191
_lastCountdownTime = 0;
191192
CancelState();
192193
}
194+
193195
//Auto manual on being attacked by someone.
194196
else if (Service.Config.StartOnAttackedBySomeone
195197
&& target != null
@@ -200,7 +202,8 @@ internal static void UpdateRotationState()
200202
DoStateCommandType(StateCommandType.Manual);
201203
}
202204
}
203-
//Auto start at count Down.
205+
206+
//Auto start at count down.
204207
else if (Service.Config.StartOnCountdown
205208
&& Service.CountDownTime > 0)
206209
{
@@ -213,6 +216,7 @@ internal static void UpdateRotationState()
213216
DoStateCommandType(StateCommandType.Auto);
214217
}
215218
}
219+
216220
//Cancel when after combat.
217221
else if (ActionUpdater.AutoCancelTime != DateTime.MinValue
218222
&& DateTime.Now > ActionUpdater.AutoCancelTime)

0 commit comments

Comments
 (0)