Enemies Trying to Attack From Far Away

I’m having issues while hacking FE7. I’m making a small little test map to get back into things and the enemies keep trying to attack from multiple spaces away, such as a soldier using an iron lance 5 tiles away and the animation being stuck in battle forever. I’m not sure why this is happening, I’m sorry if it’s simple I’m just now getting back into this after taking a break. Here is some info (I’m not far in at all)
EventPointerTable(0x06,Pointers)

ORG 0x00D10000
Pointers:
POIN Turn_events
POIN Character_events
POIN Location_events
POIN Misc_events
POIN TrapData TrapData
POIN Bad Bad Bad Bad
POIN Good Good Good Good
POIN Opening_event Ending_event

Bad:
UNIT

Good:
UNIT

Turn_events:
TURN 0x00 StartOff [01,00] 0x00 0x00
END_MAIN

StartOff:
LOU1 EnemyData
ENUN
LOU1 AllyData
ENUN
ENDA

EnemyData:
UNIT 0x68 0x38 0x00 Level(15,Enemy,True) [10,19] [9,14] [0x14] [0]
UNIT 0x68 0x38 0x00 Level(14,Enemy,True) [12,19] [11,16] [0x14] Guard
UNIT 0x68 0x3E 0x00 Level(5,Enemy,True) [19,19] [17,17] [IronSword] GuardTile
UNIT

AllyData:
UNIT 0x03 0x02 0x00 Level(6,Ally,True) [0,0] [1,2] [IronSword,Vulnerary] [0]
UNIT

Character_events:
END_MAIN

Location_events:
Village(0x05,VisOne,17,3)
Village(0x06,VisTwo,3,7)
Village(0x07,VisThree,13,11)
Village(0x08,VisFour,5,15)
END_MAIN

VisOne:
MUSI
FADI 0x04
BACG 0x01
FADU 0x04
TEX1 0x899
MUNO
REMA
ITGV 0x6C
ENDA

VisTwo:
MUSI
FADI 0x04
BACG 0x01
FADU 0x04
TEX1 0x898
MUNO
REMA
LOU1 Risks
ENUN
ENDA

Risks:
UNIT 0xB8 0x10 0x00 Level(15,Enemy,True) [2,7] [2,8] [0x0C] [0]
UNIT 0xB8 0x1A 0x00 Level(15,Enemy,True) [4,7] [4,8] [0x2E] [0]
UNIT 0xB8 0x23 0x00 Level(15,Enemy,True) [3,7] [3,9] [0x39] [0]
UNIT

VisThree:
MUSI
FADI 0x04
BACG 0x01
FADU 0x04
TEX1 0x891
MUNO
REMA
LOU1 Courage
ENUN
ENDA

Courage:
UNIT 0x78 0x38 0x00 Level(20,NPC,True) [13,11] [12,12] [0x0B] [0]
UNIT 0x78 0x2A 0x00 Level(20,NPC,True) [13,11] [14,12] [0x17] [0]
UNIT

VisFour:
MUSI
FADI 0x04
BACG 0x01
FADU 0x04
TEX1 0x896
MUNO
REMA
ITGV 0x11
ENDA

Misc_events:
CauseGameOverIfLordDies
END_MAIN

Opening_event:
ENDA

Ending_event:
MoveToChapter(0x02)
ENDA

TrapData:
ENDTRAP

Doesn’t sound like it’s event related. Did you change the iron lance’s min/max range?

No I didn’t, I’m really trying to figure out what’s wrong. It’s not just that weapon either because a swordmaster tried to use a sword from 2 tiles away.

What have you done since everything worked normally?

I believe all I did was edit text and add a village cutscene when visited.

I don’t see how that would result in your issue. Do you have a backup from that point? Try re-editing the text and the village cutscene and see if things still break. My guess is that you accidentally edited something you shouldn’t have.

I tried going on from the back up point but after just moving around for a while I realized that before that, enemies try to attack from far away still.

To me, it sounds like an AI error, but I could easily be wrong. Have you accidentally edited anything to do with the AI at any point? Or perhaps is the enemy following some sort of scripted events/battles/movement?

No I wasn’t really planning on it. I think I might just restart from scrap