Skip to content

Commit

Permalink
Add more exceptions to getting Toxic Orb
Browse files Browse the repository at this point in the history
  • Loading branch information
pyuk-bot committed Dec 20, 2023
1 parent d0678b9 commit 75eccd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data/cg-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,10 +906,11 @@ export default class TeamGenerator {
if (moves.some(m => m.id === 'facade')) weight *= 2;
return weight;
case 'toxicorb':
if (species.types.includes('Poison')) return 0;
if (species.types.includes('Poison') || species.types.includes('Steel')) return 0;
if (['Immunity', 'Comatose', 'Purifying Salt', 'Shields Down'].includes('ability')) return 0;

weight = 0;
if (ability === 'Poison Heal') weight += 25;
if (['Poison Heal', 'Toxic Boost'].includes('ability')) weight += 25;
if (moves.some(m => m.id === 'facade')) weight += 25;

return weight;
Expand Down

0 comments on commit 75eccd7

Please sign in to comment.