From 922b536370a0565c279285ff8ddeb1af228be20a Mon Sep 17 00:00:00 2001 From: Alex <93446519+AlexOn1ine@users.noreply.github.com> Date: Sun, 28 Jul 2024 00:33:05 +0200 Subject: [PATCH] Update migration_scripts/1.9/battle_frontier_convert_parties.py --- migration_scripts/1.9/battle_frontier_convert_parties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration_scripts/1.9/battle_frontier_convert_parties.py b/migration_scripts/1.9/battle_frontier_convert_parties.py index c5791edccd2d..05c7d0a4dbc9 100644 --- a/migration_scripts/1.9/battle_frontier_convert_parties.py +++ b/migration_scripts/1.9/battle_frontier_convert_parties.py @@ -1,7 +1,7 @@ import re def battle_frontier_mons(data): - data = re.sub(".itemTableId = BATTLE_FRONTIER_", ".heldItem = ", data) + data = re.sub(re.escape(".itemTableId = BATTLE_FRONTIER_"), ".heldItem = ", data) data = re.sub(re.escape("FacilityMon"), "TrainerMon", data) data = re.sub(re.escape(".evSpread = F_EV_SPREAD_HP,"), ".ev = TRAINER_PARTY_EVS(252, 0, 0, 0, 0, 0),", data) data = re.sub(re.escape(".evSpread = F_EV_SPREAD_SPEED | F_EV_SPREAD_DEFENSE | F_EV_SPREAD_ATTACK,"), ".ev = TRAINER_PARTY_EVS(0, 170, 170, 170, 0, 0),", data)