Hi, I tested all three of your saves twice and wasn't able to reproduce that error. I did however add a simple begin/rescue (try/catch) block around the offending line of code in hopes that will help. But please do realize this game was made quickly for a contest 2 years ago and I haven't worked on it since.
As for the skill affecting allies, that is intended and all skills will affect all targets.