Skip to content

Commit

Permalink
Merge pull request #588 from xanunderscore/pldface
Browse files Browse the repository at this point in the history
Direction override option for PLD Passage of Arms
  • Loading branch information
xanunderscore authored Feb 7, 2025
2 parents b7a87a5 + 611e1b5 commit daa42e9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BossMod/ActionQueue/Tanks/PLD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ public void Dispose() { }

private void Customize(ActionDefinitions d)
{
d.Spell(AID.PassageOfArms)!.TransformAngle = (ws, player, _, _) => _config.Wings switch
{
PLDConfig.WingsBehavior.CharacterForward => player.Rotation + 180.Degrees(),
PLDConfig.WingsBehavior.CameraBackward => ws.Client.CameraAzimuth + 180.Degrees(),
PLDConfig.WingsBehavior.CameraForward => ws.Client.CameraAzimuth,
_ => null
};

d.Spell(AID.Intervention)!.SmartTarget = ActionDefinitions.SmartTargetCoTank;
d.Spell(AID.HolySpirit)!.ForbidExecute = (ws, player, _, _) => _config.ForbidEarlyHolySpirit && !player.InCombat && ws.Client.CountdownRemaining > 1.75f;
d.Spell(AID.ShieldLob)!.ForbidExecute = (ws, player, _, _) => _config.ForbidEarlyShieldLob && !player.InCombat && ws.Client.CountdownRemaining > 0.7f;
Expand Down
18 changes: 18 additions & 0 deletions BossMod/ActionTweaks/ClassActions/PLDConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,22 @@ class PLDConfig : ConfigNode

[PropertyDisplay("Prevent use of 'Shield Lob' too early when in pre-pull (if Holy Spirit is not unlocked)")]
public bool ForbidEarlyShieldLob = true;

public enum WingsBehavior : uint
{
[PropertyDisplay("Game default (character-relative, backwards)")]
Default = 0,

[PropertyDisplay("Character-relative, forwards")]
CharacterForward = 1,

[PropertyDisplay("Camera-relative, backwards")]
CameraBackward = 2,

[PropertyDisplay("Camera-relative, forwards")]
CameraForward = 3,
}

[PropertyDisplay("Passage of Arms direction")]
public WingsBehavior Wings = WingsBehavior.Default;
}

0 comments on commit daa42e9

Please sign in to comment.