Skip to content

Commit b908441

Browse files
Merge pull request #935 from FFXIV-CombatReborn/mergeWIP
small necron improvement
2 parents de4a4a7 + 27681c0 commit b908441

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

BossMod/Framework/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public static Func<TIn, TOut> Memoize<TIn, TOut>(this Func<TIn, TOut> func) wher
312312
public static void RotateList<T>(List<T> list, int startIndex)
313313
{
314314
var count = list.Count;
315-
if (count == 0 || startIndex == 0 || startIndex % count == 0)
315+
if (count <= 1 || startIndex == 0 || startIndex % count == 0)
316316
{
317317
return;
318318
}

BossMod/Modules/Dawntrail/Extreme/Ex5Necron/Ex5NecronStates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private void Phase3(uint id)
6464
MementoMori(id + 0x70000u, 7.3f);
6565
ColdGripExistentialDread(id + 0x80000u, 4.7f);
6666
GrandCross(id + 0x90000u, 11.6f);
67-
Targetable(id + 0xA0000u, true, 19.7f, "Enrage");
67+
Targetable(id + 0xA0000u, false, 19.7f, "Enrage");
6868
}
6969

7070
private void BlueShockwave(uint id, float delay)

BossMod/Modules/Dawntrail/Extreme/Ex5Necron/Intermission.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using BossMod.Dawntrail.Dungeon.D11MesoTerminal.D112FourHeadsmen;
2-
31
namespace BossMod.Dawntrail.Extreme.Ex5Necron;
42

53
sealed class FearOfDeathAOE2(BossModule module) : Components.SimpleAOEs(module, (uint)AID.FearOfDeathAOE2, 3f);
@@ -116,7 +114,7 @@ public override void DrawArenaBackground(int pcSlot, Actor pc)
116114
}
117115
}
118116
}
119-
else if (Arena.Bounds.Radius < 18f)
117+
else if (Arena.Bounds.Radius == 17.5f)
120118
{
121119
Arena.Bounds = new ArenaBoundsRect(18f, 15f);
122120
Arena.Center = Ex5Necron.ArenaCenter;

BossMod/Modules/Dawntrail/Extreme/Ex5Necron/Invitation.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ sealed class Invitation(BossModule module) : Components.GenericAOEs(module)
66
private static readonly AOEShapeRect rect = new(36f, 5f);
77
public bool Show = true;
88

9-
public override ReadOnlySpan<AOEInstance> ActiveAOEs(int slot, Actor actor) => Show ? CollectionsMarshal.AsSpan(_aoes) : [];
9+
public override ReadOnlySpan<AOEInstance> ActiveAOEs(int slot, Actor actor)
10+
{
11+
var count = _aoes.Count;
12+
if (!Show || count == 0)
13+
{
14+
return [];
15+
}
16+
var max = count > 2 ? 2 : count;
17+
return CollectionsMarshal.AsSpan(_aoes)[..max];
18+
}
1019

1120
public override void OnTethered(Actor source, ActorTetherInfo tether)
1221
{

BossMod/Modules/Dawntrail/Extreme/Ex5Necron/MassMacabre.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public override void OnCastFinished(Actor caster, ActorCastInfo spell)
3535

3636
public override void OnEventEnvControl(byte index, uint state)
3737
{
38-
if (state == 0x00020001u && numAdded < 6) // if players leave a tower state 20001 triggers again, so we need a counter
38+
if (state == 0x00020001u && numAdded < 8) // if players leave a tower state 20001 triggers again, so we need a counter
3939
{
4040
(var pos, var minSoakers) = index switch
4141
{

BossMod/Modules/Dawntrail/Savage/M07SBruteAbombinator/M07SBruteAbombinatorStates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private void SinglePhase(uint id)
3232
Slaminator(id + 0x120000u, 6.7f);
3333
StoneRingerBrutalSmash(id + 0x130000u, 4.2f);
3434
BrutalImpact(id + 0x140000u, 4.1f, 7.7f, 8);
35-
SimpleState(id + 0x150000u, 24.7f, "Enrage");
35+
Targetable(id + 0x150000u, false, 19.7f, "Enrage");
3636
}
3737

3838
private void BrutalImpact(uint id, float delay1, float delay2, int numcasts)

0 commit comments

Comments
 (0)