Skip to content

Commit

Permalink
add timestamps to menenius
Browse files Browse the repository at this point in the history
  • Loading branch information
xanunderscore committed Nov 15, 2024
1 parent 5f48f2f commit e56e071
Showing 1 changed file with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,13 @@ class ReactiveMunition(BossModule module) : Components.StayMove(module)
public override void OnStatusGain(Actor actor, ActorStatus status)
{
if ((SID)status.ID is SID.AccelerationBomb)
{
if (Raid.FindSlot(actor.InstanceID) is var slot && slot >= 0)
PlayerStates[slot] = new(Requirement.Stay, default);
}
SetState(Raid.FindSlot(actor.InstanceID), new(Requirement.Stay, status.ExpireAt));
}

public override void OnStatusLose(Actor actor, ActorStatus status)
{
if ((SID)status.ID is SID.AccelerationBomb)
{
if (Raid.FindSlot(actor.InstanceID) is var slot && slot >= 0)
PlayerStates[slot] = default;
}
ClearState(Raid.FindSlot(actor.InstanceID));
}
}

Expand All @@ -29,19 +23,13 @@ class SenseWeakness(BossModule module) : Components.StayMove(module)
public override void OnCastStarted(Actor caster, ActorCastInfo spell)
{
if ((AID)spell.Action.ID == AID.SenseWeakness)
{
if (Raid.FindSlot(caster.TargetID) is var slot && slot >= 0)
PlayerStates[slot] = new(Requirement.Move, default);
}
SetState(Raid.FindSlot(caster.TargetID), new(Requirement.Move, Module.CastFinishAt(spell)));
}

public override void OnEventCast(Actor caster, ActorCastEvent spell)
{
if ((AID)spell.Action.ID == AID.SenseWeakness)
{
if (Raid.FindSlot(caster.TargetID) is var slot && slot >= 0)
PlayerStates[slot] = default;
}
ClearState(Raid.FindSlot(caster.TargetID));
}
}

Expand Down

0 comments on commit e56e071

Please sign in to comment.