mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-24 07:23:24 +02:00
Ran Biome
This commit is contained in:
parent
1cabfc85e2
commit
4397e689f5
@ -1732,14 +1732,14 @@ export class MoveTypeChangeAbAttr extends PreAttackAbAttr {
|
||||
*/
|
||||
override canApply({ pokemon, opponent: target, move }: MoveTypeChangeAbAttrParams): boolean {
|
||||
return (
|
||||
(this.condition?.(pokemon, target, move) ?? true) &&
|
||||
!noAbilityTypeOverrideMoves.has(move.id) &&
|
||||
!(
|
||||
pokemon.isTerastallized &&
|
||||
(move.id === MoveId.TERA_BLAST ||
|
||||
(move.id === MoveId.TERA_STARSTORM &&
|
||||
pokemon.getTeraType() === PokemonType.STELLAR &&
|
||||
pokemon.hasSpecies(SpeciesId.TERAPAGOS)))
|
||||
(this.condition?.(pokemon, target, move) ?? true)
|
||||
&& !noAbilityTypeOverrideMoves.has(move.id)
|
||||
&& !(
|
||||
pokemon.isTerastallized
|
||||
&& (move.id === MoveId.TERA_BLAST
|
||||
|| (move.id === MoveId.TERA_STARSTORM
|
||||
&& pokemon.getTeraType() === PokemonType.STELLAR
|
||||
&& pokemon.hasSpecies(SpeciesId.TERAPAGOS)))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user