Bugsquashingjuly26 (#264)

* big bug squash

* ok
This commit is contained in:
bryanthaboi
2026-07-26 14:11:07 -04:00
committed by GitHub
parent f7695308b7
commit 043f6b2426
9 changed files with 296 additions and 113 deletions
+3 -1
View File
@@ -3257,7 +3257,9 @@ function OverworldState:afterBattle(result, battle)
lead and lead.stats.hp or 0)
local Evolution = require("src.pokemon.Evolution")
local function evolutions()
Evolution.checkParty(Game)
-- Only mons that gained a level this battle (EXP.ALL included).
-- Scanning the whole party re-offered B-cancelled evolutions forever (#213).
Evolution.checkParty(Game, nil, battle and battle.leveledUp)
end
if result == "lose" then
local oaksLabRival = battle and battle.oppClass == "OPP_RIVAL1"