Implement various abilities including Mold Breaker

This commit is contained in:
Flashfyre committed 2024-03-14 00:40:57 -04:00
1 parent 54eed194fd
commit 0c835f4157
6 files changed
+307 -104

No files matched your search

+7 -1
View File
@@ -16,7 +16,7 @@ import { TrainerType } from "../data/enums/trainer-type";
import { BattlerIndex } from "../battle";
import { Moves } from "../data/enums/moves";
import { TimeOfDay } from "../data/enums/time-of-day";
import { Terrain, TerrainType, getTerrainColor } from "../data/terrain";
import { Terrain, TerrainType } from "../data/terrain";
const WEATHER_OVERRIDE = WeatherType.NONE;
@@ -27,6 +27,8 @@ export class Arena {
public terrain: Terrain;
public tags: ArenaTag[];
public bgm: string;
public ignoreAbilities: boolean;
private lastTimeOfDay: TimeOfDay;
private pokemonPool: PokemonPools;
@@ -423,6 +425,10 @@ export class Arena {
}
}
setIgnoreAbilities(ignoreAbilities: boolean = true): void {
this.ignoreAbilities = ignoreAbilities;
}
applyTagsForSide(tagType: ArenaTagType | { new(...args: any[]): ArenaTag }, side: ArenaTagSide, ...args: any[]): void {
let tags = typeof tagType === 'string'
? this.tags.filter(t => t.tagType === tagType)