Healing skills that use CST_HPPERCENT and CST_SPPERCENT break drawSkillCommand while on the dungeon floor.
I'm not sure why or how mo.maxhp and mo.maxsp are nil when this function is brought up outside of battles, but it apparently is so. Below is a warning trace for when the game tries to render an ATK_HEAL skill that has a CST_SPPERCENT cost type.
WARNING: ...2 v2.2\SRB2P-main.pk3|Lua/RENDERER/Render_Battle.LUA:856: attempt to perform arithmetic on field 'maxsp' (a nil value)
stack traceback:
...2 v2.2\SRB2P-main.pk3|Lua/RENDERER/Render_Battle.LUA:856: in function 'drawSkillCommand'
...main.pk3|Lua/MENU/INGAME_MENUS/MENULIST/Pause_MP.LUA:194: in function 'drawer'
...B2 v2.2\SRB2P-main.pk3|Lua/RENDERER/Render_Menus.LUA:18: in function 'renderMenus'
... v2.2\SRB2P-main.pk3|Lua/RENDERER/Render_Dungeon.LUA:684: in function <... v2.2\SRB2P-main.pk3|Lua/RENDERER/Render_Dungeon.LUA:668>