Skip to content

Commit

Permalink
Fix tier set for rd
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorm4 committed Mar 4, 2025
1 parent 8db3d9b commit 9b0b9fc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 27 deletions.
1 change: 1 addition & 0 deletions src/analysis/retail/monk/mistweaver/CHANGELOG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { emallson, Trevor, Vetyst, Vohrr } from 'CONTRIBUTORS';
import SpellLink from 'interface/SpellLink';

export default [
change(date(2025, 3, 3), <>Fix 11.1 tier set module</>, Trevor),
change(date(2025, 3, 3), <>Add 11.1 tier set module and other fixups</>, Trevor),
change(date(2025, 3, 3), <>Add <SpellLink spell={TALENTS_MONK.RESPLENDENT_MIST_TALENT}/> module</>, Trevor),
change(date(2025, 3, 3), <>Update <SpellLink spell={TALENTS_MONK.JADE_BOND_TALENT}/> for 11.1</>, Trevor),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,16 @@ export function isStrengthOfTheBlackOxConsumed(event: RemoveBuffEvent): boolean
}

// tier
export function isInsuranceFromHardcast(event: ApplyBuffEvent | RefreshBuffEvent | HealEvent) {
if (event.type === EventType.Heal) {
const source = GetRelatedEvents(event, INSURANCE);
if (!source.length) {
return false;
}
return HasRelatedEvent(source[0], INSURANCE_FROM_REM);
export function isInsuranceFromHardcast(event: HealEvent) {
const source = GetRelatedEvent(event, INSURANCE);
if (!source) {
return false;
}
const remApply = GetRelatedEvent<RefreshBuffEvent | ApplyBuffEvent>(source, INSURANCE_FROM_REM);
if (!remApply) {
return false;
}
return HasRelatedEvent(event, INSURANCE_FROM_REM);
return isFromHardcast(remApply) || isFromRapidDiffusion(remApply);
}

export default CastLinkNormalizer;
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ import {
SOURCE_APPLY,
DANCING_MIST_BUFFER_MS,
FROM_MISTS_OF_LIFE,
INSURANCE_FROM_REM,
} from './EventLinkConstants';
import { TIERS } from 'game/TIERS';

export const RENEWING_MIST_EVENT_LINKS: EventLink[] = [
// link renewing mist apply to its CastEvent
Expand Down Expand Up @@ -146,18 +144,4 @@ export const RENEWING_MIST_EVENT_LINKS: EventLink[] = [
return c.hasTalent(TALENTS_MONK.MISTS_OF_LIFE_TALENT);
},
},
// Insurance from Rem hardcast
{
linkRelation: INSURANCE_FROM_REM,
linkingEventId: SPELLS.INSURANCE_HOT_MONK.id,
linkingEventType: [EventType.ApplyBuff, EventType.RefreshBuff],
referencedEventId: TALENTS_MONK.RENEWING_MIST_TALENT.id,
referencedEventType: [EventType.Cast],
backwardBufferMs: CAST_BUFFER_MS,
forwardBufferMs: CAST_BUFFER_MS,
maximumLinks: 1,
isActive: (c) => {
return c.has4PieceByTier(TIERS.TWW2);
},
},
];
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import SPELLS from 'common/SPELLS';
import { TALENTS_MONK } from 'common/TALENTS';
import { EventLink } from 'parser/core/EventLinkNormalizer';
import { EventType } from 'parser/core/Events';
import {
Expand All @@ -16,8 +15,8 @@ export const TIER_EVENT_LINKS: EventLink[] = [
linkRelation: INSURANCE_FROM_REM,
linkingEventId: SPELLS.INSURANCE_HOT_MONK.id,
linkingEventType: [EventType.ApplyBuff, EventType.RefreshBuff],
referencedEventId: TALENTS_MONK.RENEWING_MIST_TALENT.id,
referencedEventType: [EventType.Cast],
referencedEventId: SPELLS.RENEWING_MIST_HEAL.id,
referencedEventType: [EventType.ApplyBuff, EventType.RefreshBuff],
backwardBufferMs: CAST_BUFFER_MS,
forwardBufferMs: CAST_BUFFER_MS,
maximumLinks: 1,
Expand Down

0 comments on commit 9b0b9fc

Please sign in to comment.