Skip to content

Commit

Permalink
Use filter for getTwinGuardianPartner
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Apr 1, 2024
1 parent e3c2500 commit f83cfb8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ class DefensiveCastLinkNormalizer extends EventLinkNormalizer {
}

export function getTwinGuardianPartner(event: ApplyBuffEvent): ApplyBuffEvent | undefined {
return GetRelatedEvent<ApplyBuffEvent>(event, TWIN_GUARDIAN_PARTNER);
return GetRelatedEvent(
event,
TWIN_GUARDIAN_PARTNER,
(e): e is ApplyBuffEvent => e.type === EventType.ApplyBuff,
);
}

export default DefensiveCastLinkNormalizer;

0 comments on commit f83cfb8

Please sign in to comment.