From 657680f60d4f458502941f6eb19cfc0bbaf25232 Mon Sep 17 00:00:00 2001 From: nwjgit Date: Tue, 14 Nov 2023 21:35:33 -0600 Subject: [PATCH] fix --- src/simulation/misc/Nightmare.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/simulation/misc/Nightmare.ts b/src/simulation/misc/Nightmare.ts index 56388e8cf..f49ef8d29 100644 --- a/src/simulation/misc/Nightmare.ts +++ b/src/simulation/misc/Nightmare.ts @@ -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'); + } } }