Skip to content

Instantly share code, notes, and snippets.

function onBattleAction()
log("onBattleAction()")
log("isWildBattle()")
if isWildBattle() then
log("true")
log("isOpponentShiny()")
if isOpponentShiny() then
log("true")
log("useItem('Ultra Ball')")
if not useItem("Ultra Ball") then
This file has been truncated, but you can view the full file.
{
"alakazam": {
"name": "Alakazam",
"alts": [{
"suffix": "",
"hp": 55,
"atk": 50,
"def": 45,
"spa": 135,
"spd": 95,