{
  name: "Unrelenting Stampede",
  rating: 4,
  num: -212260,
  onStart(pokemon) {
    const foeSide = pokemon.side.foe;
    let fallen = 0;
    if (foeSide) {
      for (const foe of foeSide.pokemon) {
        if (foe.fainted) fallen++;
      }
    }
    pokemon.abilityState.unrelentingstampedeFallen = fallen;
    if (fallen > 0) {
      this.add("-ability", pokemon, "Unrelenting Stampede");
      this.add("-message", `${pokemon.name}'s power rose from its foes' downfall! (${fallen} fainted foe${fallen === 1 ? "" : "s"})`);
    }
  },
  onBasePower(basePower, attacker, defender, move) {
    const fallen = attacker.abilityState.unrelentingstampedeFallen || 0;
    if (!fallen) return;
    return this.chainModify(1 + fallen * 0.1);
  }
}
