Skip to content

Commit

Permalink
Merge branch 'awgil:master' into lab
Browse files Browse the repository at this point in the history
  • Loading branch information
Akechi-kun authored Feb 6, 2025
2 parents 3fc7b5c + 5cd4fbf commit 7e23381
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions BossMod/Modules/Dawntrail/Ultimate/FRU/FRUStates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ private void P2DiamondDust(uint id, float delay)
.DeactivateOnExit<P2SinboundHoly>();
ComponentCondition<P2ShiningArmor>(id + 0x80, 3.7f, comp => comp.NumCasts > 0, "Gaze")
.ExecOnEnter<P2TwinStillnessSilence>(comp => comp.EnableAIHints())
.ExecOnEnter<P2SinboundHolyVoidzone>(comp => comp.AIHintsEnabled = false)
.DeactivateOnExit<P2ShiningArmor>();
ComponentCondition<P2TwinStillnessSilence>(id + 0x90, 3.0f, comp => comp.AOEs.Count > 0);
ComponentCondition<P2TwinStillnessSilence>(id + 0x91, 3.5f, comp => comp.NumCasts > 0, "Front/back");
Expand Down
11 changes: 10 additions & 1 deletion BossMod/Modules/Dawntrail/Ultimate/FRU/P2DiamondDust.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,16 @@ public override void OnEventCast(Actor caster, ActorCastEvent spell)
}
}

class P2SinboundHolyVoidzone(BossModule module) : Components.PersistentVoidzone(module, 6, m => m.Enemies(OID.SinboundHolyVoidzone).Where(z => z.EventState != 7));
class P2SinboundHolyVoidzone(BossModule module) : Components.PersistentVoidzone(module, 6, m => m.Enemies(OID.SinboundHolyVoidzone).Where(z => z.EventState != 7))
{
public bool AIHintsEnabled = true;

public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignment assignment, AIHints hints)
{
if (AIHintsEnabled)
base.AddAIHints(slot, actor, assignment, hints);
}
}

class P2ShiningArmor(BossModule module) : Components.GenericGaze(module, ActionID.MakeSpell(AID.ShiningArmor))
{
Expand Down

0 comments on commit 7e23381

Please sign in to comment.