Just use dhelmise's code

This commit is contained in:
Shriansh Chari 2026-05-08 10:30:51 -07:00
parent 305999fa2f
commit 6cb516f803

View File

@ -243,7 +243,7 @@ export class PSSearchResults extends preact.Component<{
let pp = (move.pp === 1 || move.noPPBoosts ? move.pp : move.pp * 8 / 5);
if (search.dex.gen < 3) pp = Math.min(61, pp);
if (search.dex.modid === 'champions') {
pp = Math.min(move.pp, 20);
pp = move.pp > 20 ? 20 : move.pp;
if (!move.noPPBoosts) pp = (pp / 5 + 1) * 4;
}
return <li class="result"><a