fix ts error
This commit is contained in:
parent
3991a8205a
commit
8abe06334e
|
@ -291,7 +291,7 @@ export async function initBattleWithEnemyConfig(scene: BattleScene, partyConfig:
|
|||
|
||||
// Set AI type
|
||||
if (!isNullOrUndefined(config.aiType)) {
|
||||
enemyPokemon.aiType = config.aiType;
|
||||
enemyPokemon.aiType = config.aiType!;
|
||||
}
|
||||
|
||||
// Set moves
|
||||
|
|
Loading…
Reference in New Issue