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!