Skip to content

Commit

Permalink
Merge pull request #466 from FFXIV-CombatReborn/actioninvokefix
Browse files Browse the repository at this point in the history
Update ECommons submodule and validate ClassJob in BaseAction
  • Loading branch information
LTS-FFXIV authored Dec 5, 2024
2 parents 7958e28 + 4c7eedf commit 0b56831
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ECommons
8 changes: 8 additions & 0 deletions RotationSolver.Basic/Actions/BaseAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,15 @@ public ActionConfig Config
value = Setting.CreateConfig?.Invoke() ?? new ActionConfig();
Service.Config.RotationActionConfig[ID] = value;

if (!Action.ClassJob.IsValid)
{
// Log the error for debugging purposes
Svc.Log.Debug($"ClassJob is not valid for Action ID: {ID}");
return value;
}

var classJob = Action.ClassJob.Value;

if (classJob.RowId != 0 && classJob.GetJobRole() == JobRole.Tank)
{
value.AoeCount = 2;
Expand Down

0 comments on commit 0b56831

Please sign in to comment.