Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit committed Nov 15, 2023
1 parent 2cc1db2 commit 657680f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/simulation/misc/Nightmare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,15 @@ class NightmareClass {
options.isPhosani ? phosaniTertiary.roll() : teamMember.mvp ? mvpTertiary.roll() : nonMvpTertiary.roll()
);
// Pet roll for The Nightmare
let petRoll = teamMember.mvp
? roll(Math.min(760 * options.team.length, 4000))
: roll(Math.min(800 * options.team.length, 4000));
if (petRoll) {
lootResult[teamMember.id].add('Little Nightmare');
console.log(`options.team.length has: ${options.team.length}`);
if (!options.isPhosani) {
let petRoll = teamMember.mvp
? roll(Math.min(760 * options.team.length, 4000))
: roll(Math.min(800 * options.team.length, 4000));
console.log(`Team member ${[teamMember.id]} pet roll is: ${petRoll}`);
if (petRoll) {
lootResult[teamMember.id].add('Little Nightmare');
}
}
}

Expand Down

0 comments on commit 657680f

Please sign in to comment.