Skip to content

Commit

Permalink
Tooltips: show Tera BP floor
Browse files Browse the repository at this point in the history
  • Loading branch information
pyuk-bot committed Sep 22, 2023
1 parent 239ec41 commit 6df311f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/battle-tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,18 @@ class BattleTooltips {
if (move.id === 'risingvoltage' && this.battle.hasPseudoWeather('Electric Terrain') && target?.isGrounded()) {
value.modify(2, 'Rising Voltage + Electric Terrain boost');
}

// Item
value = this.getItemBoost(move, value, moveType);

// Terastal base power floor
if (
pokemon.terastallized && pokemon.terastallized === move.type && value.value < 60 && move.priority <= 0 &&
!move.multihit && !((move.basePower === 0 || move.basePower === 150) && (move as any).basePowerCallback)
) {
value.setRange(60, value.maxValue, 'Tera type BP minimum');
}

if (
move.id === 'steelroller' &&
!this.battle.hasPseudoWeather('Electric Terrain') &&
Expand All @@ -2003,9 +2015,6 @@ class BattleTooltips {
value.set(0, 'no Terrain');
}

// Item
value = this.getItemBoost(move, value, moveType);

return value;
}

Expand Down

0 comments on commit 6df311f

Please sign in to comment.