status cannot be applied to max-mons, and falls off if they dynamax

This commit is contained in:
Cae Rulius 2024-05-13 15:49:28 -05:00
parent d357e57292
commit 8a7a5f24d5

View File

@ -558,6 +558,10 @@ export class MinimizeTag extends BattlerTag {
}
lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType): boolean {
//If a pokemon dynamaxes they lose minimized status
if(pokemon.isMax()){
return false
}
return lapseType !== BattlerTagLapseType.CUSTOM || super.lapse(pokemon, lapseType);
}