Glitch When Using Skills Outside Of Battle

So I've used this script
http://forum.chaos-project.com/index.php?topic=12788.0
to implement a counter attack state into my game. However, I've run into an issue where the script is interfering with my ability to use healing skills outside of battle. Namely the game just outright crashes. I've narrowed down the error to line 75 in the script and added a fix to the crash by checking if its in battle

alias counter_skill_attacks skill_effect
def skill_effect(attacker, skill)
counter_skill_attacks(attacker, skill)
if $game_temp.in_battle
if $scene.active_battler == attacker and skill.power > 0
$scene.ul_atkcounter_test(self)
end
end
end

But I still can't actually use my healing skills outside of battle and I'm not sure why. They're highlighted white implying I can use them and I can select them and select a character but then just nothing happens. I'm guessing this script is overriding the default heal outside of battle code but I'm not sure where that is. Can anyone help?

Original thread: https://forums.rpgmakerweb.com/threads/glitch-when-using-skills-outside-of-battle.75765/