mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-19 08:16:23 +00:00
- remove any `.js` extension imports - remove unncessary dynamic imports of `modifier.ts` file. The file was being imported statically & dynamically. Made it pure static - increase vite chunk-size warning limit Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>
12 lines
357 B
TypeScript
12 lines
357 B
TypeScript
import Pokemon from "#app/field/pokemon";
|
|
import { BattlePhase } from "./battle-phase";
|
|
|
|
type PokemonFunc = (pokemon: Pokemon) => void;
|
|
|
|
export abstract class FieldPhase extends BattlePhase {
|
|
executeForAll(func: PokemonFunc): void {
|
|
const field = this.scene.getField(true).filter(p => p.summonData);
|
|
field.forEach(pokemon => func(pokemon));
|
|
}
|
|
}
|