Function is called twice and I've no idea why

The function attack() is called twice even though it shouldn’t be possible, because the counter variable, which I’ve implented for debug purpose is higher than 0. see this pic for detailed info: Imgur: The magic of the Internet

thanks in advance for a reply!

Try putting counter++; before AttackDamage(); This should help.