0801B17A 220A
0A is responsible for magic seal range?
The routine at 0801B148 is called by the AI for healing staff use (Also by the staff usability routines, I believe).
You’ll see the code
0801B160 6850 ldr r0,[r2,#0x4] @Class
0801B162 6A89 ldr r1,[r1,#0x28] @Character ability
0801B164 6A80 ldr r0,[r0,#0x28]
0801B166 4301 orr r1,r0
0801B168 2080 mov r0,#0x80
0801B16A 04C0 lsl r0,r0,#0x13 @0000 0100 0000 0000 0000 0000 0000 0000 Character ability 4 0x4 - Magic sealing
0801B16C 4001 and r1,r0
0801B16E 2900 cmp r1,#0x0
0801B170 D007 beq #0x801B182 @No magic sealing -- loop.
0801B172 2010 mov r0,#0x10
0801B174 5610 ldsb r0,[r2,r0] @XLocation
0801B176 2111 mov r1,#0x11
0801B178 5651 ldsb r1,[r2,r1] @YLocation
0801B17A 220A mov r2,#0xA @Range?
0801B17C 1C2B mov r3,r5 @-1?
I’m going to try tweaking that 0xA to see if I can change the magic sealing range. Also,
0801B14C 2481 mov r4,#0x81 @First enemy
Tweaking this to see if I can make a player magic seal.
.
Edit: It doesn’t appear to control the range, unfortunately. But I shall find what does; it can’t be far from here.