So I am having some weird issues with this script. When I face an enemy and kill them it counts it as two defeated even when there was only one in the battle. How do I fix this?
Edit: Just noticed that this was put in the wrong spot. My bad.
Edit: Just noticed that this was put in the wrong spot. My bad.