{
  num: -13011,
  accuracy: 100,
  basePower: 120,
  category: "Physical",
  name: "Kamishini no Yari",
  pp: 5,
  priority: 0,
  flags: {contact: 1, protect: 1, mirror: 1, metronome: 1, slicing: 1, authentic: 1},
  ignoreDefensive: true,
  bankaiOnly(source, move) {
    if (!source) return false;
    const species = source.species || source.template || {};
    const speciesName = species.name || species.species || "";
    const speciesId = species.id || "";
    if (source.hasAbility?.("godkillingblade")) return true;
    if (speciesName === "Gin-Mega" || speciesName === "Gin-Bankai" || speciesId === "ginmega" || speciesId === "ginbankai") return true;
    if (species.forme === "Mega" && (species.baseSpecies === "Gin" || speciesName.includes("Gin"))) return true;
    this.add("-fail", source, move);
    this.attrLastMove("[still]");
    return false;
  },
  activateSliver(target, source, move) {
    if (!target || target.fainted) return;
    const damage = Math.max(1, Math.floor((target.maxhp || target.baseMaxhp || 1) * 3 / 4));
    this.add("-activate", target, "move: Kamishini Sliver");
    this.damage(damage, target, source, move);
    if (!target.status) target.setStatus("tox", source, move, true);
    target.ginKamishiniSliver = false;
    target.ginKamishiniSliverSource = null;
    if (target.volatiles?.kamishinisliver) target.removeVolatile("kamishinisliver");
  },
  onTry(source, target, move) {
    if (!this.effect.bankaiOnly.call(this, source, move)) return null;
  },
  onTryHit(target, source, move) {
    if (!this.effect.bankaiOnly.call(this, source, move)) return null;
  },
  onHit(target, source, move) {
    if (!target || !source) return;
    if (target.ginKamishiniSliver || target.volatiles?.kamishinisliver) {
      this.effect.activateSliver.call(this, target, source, move);
      return;
    }
    target.ginKamishiniSliver = true;
    target.ginKamishiniSliverSource = source;
    target.addVolatile("kamishinisliver", source, move);
  },
  secondary: null,
  target: "normal",
  type: "Steel",
  zMove: {basePower: 190},
  contestType: "Cool",
  desc: "Bankai-only. Applies Kamishini Sliver, ignores Defense boosts, bypasses Substitute, and immediately detonates the sliver if it is already present."
}
