type hints affected by enemy illusionin fight-ui-handler

This commit is contained in:
Lylian 2025-03-31 16:44:41 +02:00
parent 149d56c31d
commit b8ea47a24c
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ class DefaultOverrides {
// --------------------------
// OPPONENT / ENEMY OVERRIDES
// --------------------------
readonly OPP_SPECIES_OVERRIDE: Species | number = 0;
readonly OPP_SPECIES_OVERRIDE: Species | number = Species.ZORUA;
/**
* This will make all opponents fused Pokemon
*/

View File

@ -353,7 +353,7 @@ export default class FightUiHandler extends UiHandler implements InfoToggle {
const moveColors = opponents
.map(opponent =>
opponent.getMoveEffectiveness(pokemon, pokemonMove.getMove(), !opponent.battleData.abilityRevealed),
opponent.getMoveEffectiveness(pokemon, pokemonMove.getMove(), !opponent.battleData.abilityRevealed, undefined, undefined, true),
)
.sort((a, b) => b - a)
.map(effectiveness => getTypeDamageMultiplierColor(effectiveness ?? 0, "offense"));