added argument to the attack function to prevent infinite recursion in the case of creature -> creature combat