Vanilla-Expanded / VanillaPsycastsExpanded

2 stars 13 forks source link

Potential bug with mind control #15

Open Absurde opened 1 year ago

Absurde commented 1 year ago

I mind controlled one of 2 remaining raiders and before he snapped out of it the other died. Once the now last raider turned back to an enemy, I got an error spam every couple of ticks referencing his lack of duty. It didn't happen with mind-controlled enemies that still had living allies, they seemed to re-join the raiding duty/lord/wtv just fine, so I'm guessing if it's the last one, that gets wiped since the game doesn't detect any enemies anymore, and once returned to enemy status he no longer has a lord to attach to. Attached a log, there's some unrelated errors early on, the relevant stuff is at the very bottom. Player-prev.log

legodude17 commented 1 year ago

It's because it saves the old Lord to restore it, but if the lord gets destroyed before then I guess it causes errors.