Skip to content

Commit

Permalink
DSR: config to disable automatic anti-kb.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgil committed Jul 10, 2024
1 parent a53d37e commit 8aa2d95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private void ProjectionOfTurmoil2(uint id, float delay)
Cast(id, AID.ProjectionOfTurmoil, delay, 5, "Moving line with stacks")
.ActivateOnEnter<ProjectionOfTurmoil>();
HalfFull(id + 0x100, 16.6f);
HalfFull(id + 0x200, 2.8f);
HalfFull(id + 0x200, 2.9f);
HalfFull(id + 0x300, 4.1f);
BitterWhirlwind(id + 0x400, 3.9f)
.DeactivateOnExit<ProjectionOfTurmoil>();
Expand Down
3 changes: 3 additions & 0 deletions BossMod/Modules/Endwalker/Ultimate/DSW2/DSW2Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public class DSW2Config() : ConfigNode()
[PropertyDisplay("P2 Sanctity of the Ward (charges): role responsible for balancing groups (if not set, swap with role partner instead)")]
public Role P2SanctitySwapRole;

[PropertyDisplay("P2 Sanctity of the Ward (meteors): automatically use knockback immunity if needed")]
public bool P2Sanctity2AutomaticAntiKB = true;

[PropertyDisplay("P2 Sanctity of the Ward (meteors): pair assignments")]
[GroupDetails(["North", "East", "South", "West"])]
[GroupPreset("MT/R1 N, OT/R2 S, H1/M1 E, H2/M2 W", [0, 2, 1, 3, 1, 3, 0, 2])]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ class P2SanctityOfTheWard2VoidzoneIce(BossModule module) : Components.Persistent

class P2SanctityOfTheWard2Knockback(BossModule module) : Components.KnockbackFromCastTarget(module, ActionID.MakeSpell(AID.FaithUnmoving), 16)
{
private readonly DSW2Config _config = Service.Config.Get<DSW2Config>();

public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignment assignment, AIHints hints)
{
if (Casters.Count > 0 && !actor.Position.InCircle(Module.Center, 12))
if (_config.P2Sanctity2AutomaticAntiKB && Casters.Count > 0 && !actor.Position.InCircle(Module.Center, 12))
{
var action = actor.Class.GetClassCategory() is ClassCategory.Healer or ClassCategory.Caster ? ActionID.MakeSpell(ClassShared.AID.Surecast) : ActionID.MakeSpell(ClassShared.AID.ArmsLength);
hints.ActionsToExecute.Push(action, actor, ActionQueue.Priority.High);
Expand Down

0 comments on commit 8aa2d95

Please sign in to comment.