Skip to content

Commit

Permalink
code analyzer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CarnifexOptimus committed Dec 30, 2024
1 parent 6bc497b commit 68ca103
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions BossMod/Modules/Dawntrail/Hunt/RankA/Keheniheyamewi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ public override void OnCastStarted(Actor caster, ActorCastInfo spell)

public override void OnCastFinished(Actor caster, ActorCastInfo spell)
{
if (spell.Action.ID == (uint)AID.SlipperyScatterscourge)
if (_caster != null && spell.Action.ID == (uint)AID.SlipperyScatterscourge)
{
var finalPos = GetRectEndPosition(_caster.Position, _caster.Rotation, _shapeRect.LengthFront);
var futureActivation = WorldState.FutureTime(10);

for (int i = 0; i < _activeAOEs.Count; i++)
for (int i = 0; i < _activeAOEs.Count; ++i)
{
var aoe = _activeAOEs[i];
if (aoe.Shape == _shapeDonut)
Expand Down Expand Up @@ -165,4 +165,4 @@ public KeheniheyamewiStates(BossModule module) : base(module)
}

[ModuleInfo(BossModuleInfo.Maturity.Verified, Contributors = "Shinryin", GroupType = BossModuleInfo.GroupType.Hunt, GroupID = (uint)BossModuleInfo.HuntRank.A, NameID = 13401)]
public class Keheniheyamewi(WorldState ws, Actor primary) : SimpleBossModule(ws, primary);
public class Keheniheyamewi(WorldState ws, Actor primary) : SimpleBossModule(ws, primary);
8 changes: 4 additions & 4 deletions BossMod/Modules/Dawntrail/Hunt/RankA/Pkuucha.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PeckingFlurry(BossModule module) : Components.RaidwideCast(module, ActionI

class MarchingSamba(BossModule module) : Components.GenericAOEs(module)
{
private List<AOEInstance> _aoes = new();
private readonly List<AOEInstance> _aoes = [];
private Actor? _caster;
private static readonly AOEShapeCircle _circle = new(12);
private static readonly AOEShapeCone _cone = new(40, 90.Degrees());
Expand All @@ -49,8 +49,8 @@ public override void OnCastStarted(Actor caster, ActorCastInfo spell)
if ((AID)spell.Action.ID is AID.MarchingSamba or AID.MesmerizingMarch)
{
_caster = caster;
_aoes.Add(new(_circle, caster.Position, caster.Rotation, WorldState.CurrentTime.AddSeconds(6.5f), Colors.Danger, true));
_aoes.Add(new(_cone, caster.Position, caster.Rotation, WorldState.CurrentTime.AddSeconds(8), Colors.AOE, true));
_aoes.Add(new(_circle, caster.Position, caster.Rotation, WorldState.CurrentTime.AddSeconds(6.5f), Colors.Danger));
_aoes.Add(new(_cone, caster.Position, caster.Rotation, WorldState.CurrentTime.AddSeconds(8)));
}
}

Expand Down Expand Up @@ -87,4 +87,4 @@ public PkuuchaStates(BossModule module) : base(module)
}

[ModuleInfo(BossModuleInfo.Maturity.Verified, Contributors = "Shinryin", GroupType = BossModuleInfo.GroupType.Hunt, GroupID = (uint)BossModuleInfo.HuntRank.A, NameID = 13443)]
public class Pkuucha(WorldState ws, Actor primary) : SimpleBossModule(ws, primary);
public class Pkuucha(WorldState ws, Actor primary) : SimpleBossModule(ws, primary);

0 comments on commit 68ca103

Please sign in to comment.