Skip to content

Commit bd2f1cb

Browse files
committed
swordmaster
1 parent 5c6944f commit bd2f1cb

File tree

3 files changed

+407
-224
lines changed

3 files changed

+407
-224
lines changed

BossMod/BossMod.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Dalamud.NET.Sdk/14.0.1">
33
<PropertyGroup>
4-
<Version>0.4.22.1</Version>
4+
<Version>0.4.22.2</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

BossMod/Components/GenericAOEs.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,14 @@ public override void OnCastFinished(Actor caster, ActorCastInfo spell)
138138
Casters.RemoveAll(e => e.caster == caster);
139139
}
140140
}
141+
142+
public class ProximityAOEs(BossModule module, Enum aid, float radius) : StandardAOEs(module, aid, new AOEShapeCircle(radius))
143+
{
144+
public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignment assignment, AIHints hints)
145+
{
146+
base.AddAIHints(slot, actor, assignment, hints);
147+
148+
if (Casters is [{ CastInfo: var castInfo }, ..])
149+
hints.AddPredictedDamage(Raid.WithSlot().Mask(), Module.CastFinishAt(castInfo));
150+
}
151+
}

0 commit comments

Comments
 (0)