{
  num: -13102,
  accuracy: true,
  basePower: 0,
  category: "Status",
  name: "Medical Command",
  pp: 10,
  priority: 1,
  flags: { snatch: 1, metronome: 1 },
  onHitSide(side, source, move) {
    let success = false;
    for (const ally of side.active) {
      if (!ally || ally.fainted) continue;
      const boosts = {};
      for (const stat in ally.boosts) {
        if (ally.boosts[stat] < 0) boosts[stat] = -ally.boosts[stat];
      }
      if (Object.keys(boosts).length) {
        this.boost(boosts, ally, source, move);
        success = true;
      }
      if (ally.hp && ally.maxhp && ally.hp <= ally.maxhp / 2) {
        this.boost({ spd: 1 }, ally, source, move);
        success = true;
      }
    }
    side.addSideCondition("safeguard", source, move);
    return success || this.NOT_FAIL;
  },
  secondary: null,
  target: "allySide",
  type: "Psychic",
  zMove: { boost: { spd: 1 } },
  contestType: "Clever",
  desc: "Priority +1. Clears negative stat drops from Unohana's side, starts Safeguard, and gives wounded allies +1 Special Defense."
}