From 8fb6d6e78ab66479b3027566633eef6ceda1631f Mon Sep 17 00:00:00 2001 From: cajun <12363371+CajunAvenger@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:59:50 -0600 Subject: [PATCH] add error catch MSE failed to start up if you had an unhandled replacement, like "Totem Armor" --- data/magic.mse-game/script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index 5c85007bc..312f17273 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -847,12 +847,13 @@ auto_correct := replace: { _1 + _2 + to_lower(_3)}) auto_errata := replace@(match:"converted mana cost", replace:"mana value") - +replace@(match:"(?i)(Totem armor|Totembeistand|Armadura tótem|totémique|Armatura totem|Armadura de totem|族霊鎧|替身甲)", replace:{errata_map[_1]}) + +replace@(match:"(?i)(Totem armor|Totembeistand|Armadura tótem|totémique|Armatura totem|Armadura de totem|族霊鎧|替身甲)", replace:{errata_map[_1] or else _1}) +replace@(match:"hen shuffle your library", replace:"hen shuffle") +replace@(match:"this (?:ability )?(?:only )?(?:any ?time you could cast|as) a", in_context: "(Activate|Play) n? (instant|sorcery)", replace:"only as a") errata_map := [ "Totem armor": "Umbra armor", + "Totem Armor": "Umbra armor", "totem armor": "umbra armor", "Totembeistand": "Schattenbeistand", "totembeistand": "schattenbeistand",