Spellmender
Fixes mods broken by the Dec 1 2026 update: BlackMagicAPI, old spell mods, FishUtilities spell sync, ModSync, MageConfigurationAPI, stuck Escape menu. Adds Steam Join (join private lobbies from Steam). Each fix runs only if needed.
By TheFrenchSpy
| Last updated | 2 hours ago |
| Total downloads | 8 |
| Total rating | 0 |
| Categories | Tools Libraries |
| Dependency string | TheFrenchSpy-Spellmender-1.0.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Spellmender
Fixes for mods broken by the Mage Arena update of December 1, 2026, plus a way to join friends from Steam.
- Each fix for another mod only runs when that mod is installed. This mod does not install them for you.
- Each fix can be turned off in the config.
- Every player in the lobby needs Spellmender.
What it fixes
BlackMagicAPI 3.0.2
The host is kicked from their own game. The log shows "Index was outside the bounds of the array".
- Cause: BlackMagicAPI's startup stops at the first patch whose target the update removed, so the patches after it never install.
- Fix: this mod installs every BlackMagicAPI patch that is still missing, whatever their order.
Spell mods made for the old API are fixed. These are mods built for BlackMagicAPI 1.x or 2.x, such as Tungsten Balls, Testicular Torsion or SunBeamMod. They load and cast again.
- A preloader patcher (
patchers/Spellmender.Patcher.dll) rewritesBlackMagicAPI.dllin your profile before the mods load. - It also makes public the few BlackMagicAPI methods that old spell mods call directly and that 3.x hid (SunBeamMod calls one).
- Spell mods made for 3.x are not affected.
MageConfigurationAPI 1.3.1
An error appears every time a lobby or a game loads. MageConfigurationAPI looks for a main menu layout that the game no longer has there.
- Fix: the error is caught. The Mod Settings menu still works in the main menu.
Escape menu
Escape stops opening the in-game menu. The game only opens it when its spell book is closed. If that check gets stuck, Escape does nothing for the rest of the game.
- Fix: in those cases, Spellmender opens the menu itself and writes the reason in the log.
FishUtilities 1.4.0
Modded spells (Hellfire, Martial Law...) only show for the player who casts them.
- Cause: FishUtilities sends its network messages through an object the update emptied.
- Fix: this mod relays them through the players' objects.
ModSync 1.1.0
ModSync thinks every player is a client, even the host, then tries to leave the lobby.
- Fix: this mod replaces ModSync's mod check with one through Steam lobby data. ModSync must stay installed.
- When you join, each player sees which required mods differ. These messages appear in ModSync's window.
- Host only: F9 locks the lobby. While it is locked, a player is kicked if their required mods differ from the host's, or if they do not have Spellmender.
- ModSync's own F8 key (FRIENDSMODE) is off while this fix is active.
Steam Join
Join a friend's lobby from Steam instead of typing the code. This works for private lobbies too.
- While you are in a lobby, your Steam friends see Join Game on your name in their friends list.
- Steam invites work.
- F8 opens Steam's invite dialog for the lobby you are in. The Steam overlay must be enabled.
- You can choose which team you join: Auto (the team with fewer players), Sorcerer or Warlock.
- Start the game from your mod manager before you join. If Steam starts the game itself, the mods do not load.
Configuration
The config file is BepInEx/config/magearena.spellmender.cfg. It is created the first time you start the game. It has these settings:
| Section | Setting | Default |
|---|---|---|
| BlackMagicAPI | Fix | true |
| BlackMagicAPI | PatchForOldSpellMods | true |
| BlackMagicAPI | SpellCastDiagnostics (logs every spell cast) | false |
| FishUtilities | Fix | true |
| ModSync | Fix | true |
| ModSync | LobbyLockKey | F9 |
| Steam Join | Enabled | true |
| Steam Join | Team | Auto |
| Steam Join | ShowJoinGame | true |
| Steam Join | InviteKey | F8 |
| MageConfigurationAPI | Fix | true |
| Escape Menu | Fix | true |
Checking that it works
Open BepInEx/LogOutput.log and look for these lines:
BlackMagicAPI (...): patched for the old spell API. On later starts, this line saysalready patchedinstead.BlackMagicAPI patch classes: ... 0 failed.Spellmender 1.0.1 ready: BlackMagicAPI fixed, FishUtilities fixed, ModSync fixed, ...
Notes
- Spellmender is written for BlackMagicAPI 3.0.2, FishUtilities 1.4.0 and ModSync 1.1.0. If you have another version of BlackMagicAPI or ModSync, the log shows a warning.
- ZaWarudo is built for ARM64, so it does not load on a PC. This mod cannot fix that.