Skip to content

Commit

Permalink
fill only dc at index 0
Browse files Browse the repository at this point in the history
  • Loading branch information
EliphasNUIT committed Oct 3, 2023
1 parent 32e0aca commit c48c261
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions GW2EIEvtcParser/ParsedData/Agents/AgentItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ internal AgentItem GetMainAgentWhenAttackTarget(ParsedEvtcLog log, long time)

private static void AddValueToStatusList(List<Segment> dead, List<Segment> down, List<Segment> dc, AbstractStatusEvent cur, long nextTime, long minTime, int index)
{
long cTime = cur.Time;
long cTime = cur.Time;

if (cur is DownEvent)
{
down.Add(new Segment(cTime, nextTime, 1));
Expand All @@ -208,14 +209,7 @@ private static void AddValueToStatusList(List<Segment> dead, List<Segment> down,
}
else if (index == 0)
{
if (cur is SpawnEvent)
{
dc.Add(new Segment(minTime, cTime, 1));
}
else if (cur is AliveEvent)
{
dead.Add(new Segment(minTime, cTime, 1));
}
dc.Add(new Segment(minTime, cTime, 1));
}
}

Expand Down

0 comments on commit c48c261

Please sign in to comment.