Skip to content

Commit fb4c95b

Browse files
authored
fix: add a top length check to /whatif (MaxOhn#1091)
1 parent 2c4fac0 commit fb4c95b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bathbot/src/commands/osu/whatif.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ async fn whatif(orig: CommandOrigin<'_>, args: WhatIf<'_>) -> Result<()> {
235235
};
236236

237237
WhatIfData::NoScores { count, rank }
238-
} else if pp < scores.last().and_then(|s| s.pp).unwrap_or(0.0) {
238+
} else if scores.len() == 200 && pp < scores.last().and_then(|s| s.pp).unwrap_or(0.0) {
239239
WhatIfData::NonTop200
240240
} else {
241241
let mut pps = scores.extract_pp();

0 commit comments

Comments
 (0)