Skip to content

Commit

Permalink
Fix summon glamours.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgil committed Aug 19, 2024
1 parent b714873 commit bd5ca61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion BossMod/Framework/ActionManagerEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ private bool ExecuteAction(ActionID action, ulong targetId, Vector3 targetPos)
{
// real action type, just execute our UAL hook
// note that for items extraParam should be 0xFFFF (since we want to use any item, not from first inventory slot)
var extraParam = action.Type == ActionType.Item ? 0xFFFFu : 0;
// note that for 'summon carbuncle/eos/titan/ifrit/garuda' actions, extraParam can be used to select glamour
var extraParam = action.Type switch
{
ActionType.Spell => ActionManager.GetExtraParamForSummonAction(action.ID), // will return 0 for non-summon actions
ActionType.Item => 0xFFFFu,
_ => 0u
};
return _inst->UseActionLocation((CSActionType)action.Type, action.ID, targetId, &targetPos, extraParam);
}
}
Expand Down
2 changes: 1 addition & 1 deletion FFXIVClientStructs

0 comments on commit bd5ca61

Please sign in to comment.