Skip to content

Commit

Permalink
triggers build: raidboss: Ktisis Hyperboreia--Add Ladon Lord's Pyric …
Browse files Browse the repository at this point in the history
…Breath (#5882) 1a8f2d4
  • Loading branch information
github-actions committed Oct 28, 2023
1 parent 999e7b3 commit 3c3bba1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions 06-ew/dungeon/ktisis_hyperboreia.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Options.Triggers.push({
id: 'KtisisHyperboreia',
zoneId: ZoneId.KtisisHyperboreia,
timelineFile: 'ktisis_hyperboreia.txt',
initData: () => {
return {
ladonBreaths: [],
};
},
triggers: [
{
id: 'Ktisis Lyssa Skull Dasher',
Expand Down Expand Up @@ -39,6 +44,46 @@ Options.Triggers.push({
netRegex: { id: '648E', source: 'Ladon Lord' },
response: Responses.stackMarkerOn(),
},
{
// AFC: Center head; AFD: Right head; AFE: Left head
id: 'Ktisis Ladon Lord Pyric Breath Collect',
type: 'GainsEffect',
netRegex: { effectId: ['AFC', 'AFD', 'AFE'] },
run: (data, matches) => data.ladonBreaths.push(matches.effectId),
},
{
id: 'Ktisis Ladon Lord Pyric Breath Call',
type: 'Ability',
netRegex: { id: '6485', source: 'Ladon Lord', capture: false },
delaySeconds: 2,
alertText: (data, _matches, output) => {
// Somehow we have no breath data. Sadge.
if (data.ladonBreaths.length === 0)
return;
// The first breath in the encounter is always center head
if (data.ladonBreaths.length === 1)
return output.awayFromFront();
const safeId = ['AFC', 'AFD', 'AFE'].filter((id) => !data.ladonBreaths.includes(id))[0];
if (safeId === undefined)
return;
return {
AFC: output.goFront,
AFD: output.backLeft,
AFE: output.backRight,
}[safeId]();
},
run: (data) => data.ladonBreaths = [],
outputStrings: {
awayFromFront: Outputs.awayFromFront,
goFront: Outputs.goFront,
backRight: {
en: 'Get behind and right',
},
backLeft: {
en: 'Get behind and left',
},
},
},
{
id: 'Ktisis Hermes Trimegistos',
type: 'StartsUsing',
Expand Down

0 comments on commit 3c3bba1

Please sign in to comment.